[m-rev.] for review: mercury implementation of float_to_string

Peter Ross pro at missioncriticalit.com
Mon Nov 25 22:22:03 AEDT 2002


On Sat, Nov 23, 2002 at 04:27:11AM +1100, Fergus Henderson wrote:
> On 22-Nov-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> > +% Also while its output must represent the float to sufficient precision, it
> > +% doesn't need to be in *exactly* the same format as if was formated with
> > +% "%#.<prec>g".
> 
> s/formated/formatted/
> In what ways is it allowed to differ?
> 
It just must return a string representation of the number with
sufficient precision to represent the number, any valid format will do.

For example for 1.0, the following are all valid "1", "1.0",
"1.000000000000000", "1e0", "0.1e1", "0.10000E1".

I was just trying to make the point that it differs from
string__float_to_string in that it can be in another format from
"%#.<prec>g".
--------------------------------------------------------------------------
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