[m-rev.] for review: Java implementation of string library

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Dec 12 13:07:27 AEDT 2003


On 12-Dec-2003, James Goddard <goddardjames at yahoo.com> wrote:
> Peter Ross <pro at missioncriticalit.com> wrote:
> > One thing to be aware of here is that the string
> > generated by this
> > predicate must be round-trippable, i.e. when
> > converting the string back
> > to a float one gets exactly the same floating point
> > number.
> 
> Yes, this is the case.[...]
> However it doesn't work the other way around - that
> is, it is possible to convert a string to a float and
> then convert back to a string and get a different
> string.
> For example, both "+1" and "1" will convert to the
> same floating point number, as will "0.5" and "0.50".
> 
> I assume this is ok?

Yes, that should be fine.

-- 
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-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list