]> gitweb.factorcode.org Git - factor.git/commit
formatting: fix bug when using %e and the number rounds up in magnitude
authorJon Harper <jon.harper87@gmail.com>
Sun, 9 Apr 2017 18:29:11 +0000 (20:29 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 8 Jun 2017 18:23:38 +0000 (11:23 -0700)
commit1dceb069ada015096580c08db3723fd6b91688d3
treef418d2d75deaf88fb3ff8e0193f65bee296a8d7b
parent4df21818f52019e1f69b3efca2c22ea662c2c2ab
formatting: fix bug when using %e and the number rounds up in magnitude

99/10 0 format-scientific-simple was outputting 1.0e0 because
the mantissa was rounded up, so it had one extra character, and
the exponent was wrong.
basis/formatting/formatting-tests.factor
basis/formatting/formatting.factor