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

From: Alan Watson <alan>
Date: Wed, 30 May 2007 14:33:05 -0500

---
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.
Received on Wed May 30 2007 - 15:33:05 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC