|
From: Donald G P. <dg...@ni...> - 2009-02-11 22:24:07
|
Daniel A. Steffen wrote: > On Wed, Feb 11, 2009 at 19:55, Jeff Hobbs <je...@ac...> wrote: >> As to [string is number] > > looking at the implementation, it turns out that [string is double] is > actually [string is number] already, as it does not restrict to > numbers that fit inside the C 'double' type... > > there is a TODO in that code, but given that that's been there since > the original TIP#237 implementation and that this is now established > behaviour in 8.5, we may be stuck with it: That TODO was never about changing the meaning of what [string is double] tests for, but about reconsidering the particular implementation in place at that point. The meaning of [string is double] got established as accepting integers when it was defined in terms of what strtod() accepted, and they accepted integers. -- | Don Porter Mathematical and Computational Sciences Division | | don...@ni... Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________| |