Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] string_of_float less accurate than sprintf "%f" ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-05-06 (18:20)
From: David McClain <dmcclain1@m...>
Subject: Re: [Caml-list] string_of_float less accurate than sprintf "%f" ?

David Chase writes:

"It's also not entirely clear what rounding you are supposed
to get when you ask for less-precise printing.  The possibilities

These rounding modes are controlled by bits in a control register.
Separating them from the format string allows one to test the stability of
the entire (or portions) of the math code. I have never seen anyone attempt
to plant this specification inside of a format string. If it matters for
printout, then surely it also matters elsewhere in the code.

- DM

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: