caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* float rounding
@ 2006-09-30 18:25 Sean McLaughlin
  2006-10-01 12:44 ` [Caml-list] " Florent Monnier
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Sean McLaughlin @ 2006-09-30 18:25 UTC (permalink / raw)
  To: caml-list

Hello,

   I'm using Ocaml for an interval arithmetic application.  I"m  
curious about
what the Ocaml parser/compiler does to float constants.  May I assume
that for any constant I enter, eg. 3.1415... (for N digits of pi), that
the compiler will give me a closest machine representable number?
i.e., if I bound a constant by the previous and next floating point  
value to
that given me by the compiler,
will it always be the case that my original (mathematical) constant  
lies in that interval?

Thanks,

Sean


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

end of thread, other threads:[~2006-11-26  1:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-30 18:25 float rounding Sean McLaughlin
2006-10-01 12:44 ` [Caml-list] " Florent Monnier
2006-10-01 13:36 ` Gerd Stolpmann
2006-10-01 16:36 ` Xavier Leroy
2006-11-23 23:00   ` David Monniaux
2006-10-03 13:41 ` Christophe Raffalli
2006-10-03 19:59 ` Christophe Raffalli
2006-10-03 21:05   ` Olivier Andrieu
2006-11-26  1:51     ` David Monniaux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).