This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home.

Ticket 175: Control of significant digits or decimal places in NUMBER->STRING

2012-11-29 02:15:48
WG1 - Numerics
Second Public Draft
alexshinn
major
alaric
wontfix
source
closed
2011-05-09 23:05:07
enhancement

Vincent Manis pleads for a way to write numbers with a specified precision:

http://lists.scheme-reports.org/pipermail/scheme-reports/2011-May/000709.html

I (Alaric Snell-Pym) wondered if this should be done via NUMBER->STRING or via an optional extra argument to ROUND etc specifying a precision, as a number like 0.01 to get two decimal places. How to provide significant figures rather than DP without introducing a base-10 dependency is left as an exercise to the reader (as is the task of deciding if I'm mad for not wanting a base-10 dependency)

resolutionfixed
statusnewclosed

We voted no.

resolutionfixed
statusclosedreopened
resolutionwontfix
statusreopenedclosed