English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    
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: -- (:)
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
include:
....
"

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 caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners