Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] floating point input/conversion
@ 2004-10-22  9:25 Stefan Ratschan
  2004-10-22 10:12 ` Olivier Andrieu
  2004-10-23 20:47 ` Christophe Raffalli
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Ratschan @ 2004-10-22  9:25 UTC (permalink / raw)
  To: caml-list

For the functions float_of_string and read_float the OCaml manual is
very vague: "Convert the given string to a float".

In fact, this sentence is wrong. For example, the number 0.1 does not
have a floating point representation, only approximations to it.

So what is the exact specification of these functions? Which number is
taken if the given string does not have a floating point representation?
The nearest one? The nearest one up to 2ulps? Is the current rounding
mode taken into account?

Stefan Ratschan



-------------------
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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-10-23 21:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-22  9:25 [Caml-list] floating point input/conversion Stefan Ratschan
2004-10-22 10:12 ` Olivier Andrieu
2004-10-23 20:47 ` Christophe Raffalli
2004-10-23 21:00   ` Pierre Weis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox