[mercury-users] string__to_float

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Feb 11 17:49:24 AEDT 2002


On 11-Feb-2002, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> Michael Day, Monday, 11 February 2002:
> > 
> > Perhaps the documentation for string__to_float should be amended to state 
> > that it accepts strings of the form "123.0abc" and will only fail if the 
> > beginning of the string is not numeric.
> 
> That is an error in string__to_float - it should fail if the entire
> string argument is not a well formed float representation.

Agreed.  I've got a fix for this, which I will post to the
mercury-reviews list after I've tested it properly.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list