chibi-scheme/lib/chibi/show
Jim Rees 88e8d89460 Fixed integer-log-base to use exact arithmetic so rounding doesn't cause
a wrong result to things like (numeric (- (* 36 36 36) 1) 36).

Fixed a bug in numeric that caused comma-sep and dec-sep to get
initialized wrongly.

Fixed maybe-trim-zeros to leave behind at least a ".0" on
inexact numbers that otherwise would have been output without
the decimal point.  This is for consistency with number->string
which is used when the radix is 10.

In gen-general, fixed a bug in the digit-generating loop for the
whole part of the number.  Previously, an integer that should
have looked like 5003 would be emitted as 5300.

Switched the order of application of maybe-round and
maybe-trim-zeros so that a number that should round to
.0000000000000001 doesn't get emitted as 0.1.

In gen-positive-real, fixed the ratio case to not call
number->string with a radix that might not be in {2,8,10,16}.

Also in gen-positive-real, fixed the call to number->string to
include the radix which was missing previously.

Fixed wrap-sign to correctly handle the case of -0.0.

In numeric/si, always emit the supplied separator even if the
number is too small for an SI-suffix to be emitted.  The
examples in the SRFI document depend on this.
2018-03-23 12:22:03 -04:00
..
base.scm rename (chibi show) update! to with! as in srfi 159 2018-01-16 21:15:54 +09:00
base.sld rename (chibi show) update! to with! as in srfi 159 2018-01-16 21:15:54 +09:00
c-test.sld adding (chibi show c) 2017-12-30 18:36:28 +09:00
c.scm adding (chibi show c) 2017-12-30 18:36:28 +09:00
c.sld adding (chibi show c) 2017-12-30 18:36:28 +09:00
color.scm adding (chibi show color) and (chibi show unicode) 2017-11-18 14:26:51 +09:00
color.sld adding (srfi 159) wrapper around (chibi show) 2018-01-16 19:54:59 +09:00
column.scm Fixed from-file so that it produces more than just one line of output. 2018-03-22 09:50:34 -04:00
column.sld updating (chibi show) with srfi changes 2017-11-08 22:56:40 +09:00
pretty.scm try-fitted2/output* calls output on the argument string if it's 2018-03-22 11:06:55 -04:00
pretty.sld adding (chibi show c) 2017-12-30 18:36:28 +09:00
show.scm Fixed trivial bug in padded/both where the "odd space" was being emitted 2018-03-22 10:41:52 -04:00
unicode.scm adding (chibi show color) and (chibi show unicode) 2017-11-18 14:26:51 +09:00
unicode.sld adding (chibi show color) and (chibi show unicode) 2017-11-18 14:26:51 +09:00
write.scm Fixed integer-log-base to use exact arithmetic so rounding doesn't cause 2018-03-23 12:22:03 -04:00