1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-21 20:20:24 +02:00

(scm_i_print_double): New.

This commit is contained in:
Marius Vollmer 2004-10-26 16:53:23 +00:00
parent 22417f2f4e
commit b479fe9ae4
2 changed files with 10 additions and 0 deletions

View file

@ -2315,6 +2315,13 @@ scm_print_real (SCM sexp, SCM port, scm_print_state *pstate SCM_UNUSED)
return !0;
}
void
scm_i_print_double (double val, SCM port)
{
char num_buf[FLOBUFLEN];
scm_lfwrite (num_buf, idbl2str (val, num_buf, 10), port);
}
int
scm_print_complex (SCM sexp, SCM port, scm_print_state *pstate SCM_UNUSED)

View file

@ -282,6 +282,9 @@ SCM_API double scm_i_fraction2double (SCM z);
SCM_API SCM scm_i_fraction_equalp (SCM x, SCM y);
SCM_API int scm_i_print_fraction (SCM sexp, SCM port, scm_print_state *pstate);
/* general internal functions */
SCM_API void scm_i_print_double (double val, SCM port);
/* conversion functions for integers */
SCM_API int scm_is_integer (SCM val);