1 /* this file is #include'd (several times) by numbers.c */
4 NUM2FLOAT (SCM num
, unsigned long int pos
, const char *s_caller
)
8 else if (SCM_BIGP (num
))
10 FTYPE res
= mpz_get_d (SCM_I_BIG_MPZ (num
));
14 scm_out_of_range (s_caller
, num
);
16 else if (SCM_REALP (num
))
17 return SCM_REAL_VALUE (num
);
19 scm_wrong_type_arg (s_caller
, pos
, num
);
25 SCM z
= scm_double_cell (scm_tc16_real
, 0, 0, 0);
26 SCM_REAL_VALUE (z
) = n
;