[r6rs-discuss] [Formal] number->string and put-datum have different restrictions for inexact arguments

Alan Watson alan at alan-watson.org
Wed May 30 15:33:05 EDT 2007


---
This message is a formal comment which was submitted to formal-comment at r6rs.org, following the requirements described at: http://www.r6rs.org/process.html
---
Submitter: Alan Watson
Email address: alan at alan-watson.org
Issue type: Enhancement
Priority: Minor
Component: Base Library Chapter 9 and Library Chapter 8
Version: 5.93
Summary:

When number->string is used on an inexact number and the radix is 10, it 
is required to produce the minimum number of mantissa digits that 
satisfy eqv? invariance with string->number. However, put-datum does not 
have any similar restriction on the number of mantissa digits.

I would suggest that the behaviour of these two procedures be made more 
similar (i.e, apply the minimum digits requirement to put-datum or drop 
the minimum digits requirement on number->string) or a note be added to 
explain why they are different.





More information about the r6rs-discuss mailing list