[plt-scheme] string->number

From: tom sgouros (tomfool at as220.org)
Date: Thu Mar 6 10:11:08 EST 2008

Thank you.  This saves me having to debug the other end to figure out
where the space is coming from.  (And the version I've been using is
whatever was the last version to run on DOS, so I think it was around
version 43 or so.)

Many thanks,

 -R. v. W.


Eli Barzilay <eli at barzilay.org> wrote:

> > I have old code that seems to depend on this:
> > 
> >   (string->number " 0000")  => 0
> > 
> > But what that gets is:
> > 
> >   (string->number " 0000")  => #f
> > 
> > it's possible that the other end changed here (the device that delivers
> > the " 0000"), so I'm curious to know if there was a change on the scheme
> > side.  Any ideas?
> 
> It's been that way for at least a decade, since v53.
> 


-- 
 ------------------------
 tomfool at as220 dot org
 http://sgouros.com  
 http://whatcheer.net


Posted on the users mailing list.