caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] NaN reresentations
@ 2015-09-02 17:56 Andreas Rossberg
  2015-09-02 18:35 ` Daniel Bünzli
  2015-09-02 19:14 ` Xavier Leroy
  0 siblings, 2 replies; 4+ messages in thread
From: Andreas Rossberg @ 2015-09-02 17:56 UTC (permalink / raw)
  To: Ocaml Mailing List

Does the Ocaml implementation make guarantees about the stable representation of floats? In particular, if I use Int64.float_of_bits to create a particular NaN representation, am I guaranteed that its bit pattern is maintained no matter where the value is stored or passed?

We are currently in the process of implementing a reference interpreter for a little low-level language, and that tries to be as accurate as possible about float representations.

Thanks,
/Andreas


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

end of thread, other threads:[~2015-09-02 20:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-02 17:56 [Caml-list] NaN reresentations Andreas Rossberg
2015-09-02 18:35 ` Daniel Bünzli
2015-09-02 19:14 ` Xavier Leroy
2015-09-02 20:56   ` Andreas Rossberg

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