*** format.orig.scm Thu Oct 12 10:37:42 2017
--- format.scm Thu Oct 12 10:38:23 2017
***************
*** 80,86 ****
(string-append "0." frac-str)))
0)))
(new-frac
! (substring temp-str 0 digits))
)
(string-append
(if carry? (number->string (+ 1 (string->number pre-str))) pre-str)
--- 80,88 ----
(string-append "0." frac-str)))
0)))
(new-frac
! (if (> dot-pos digits)
! (substring temp-str (- dot-pos digits) dot-pos)
! (substring temp-str 0 digits)))
)
(string-append
(if carry? (number->string (+ 1 (string->number pre-str))) pre-str)