Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] float on 32 bits?
@ 2011-12-01 16:45 Pierre Vittet
  2011-12-01 17:57 ` Niki Yoshiuchi
  2011-12-02  1:46 ` Jon Harrop
  0 siblings, 2 replies; 4+ messages in thread
From: Pierre Vittet @ 2011-12-01 16:45 UTC (permalink / raw)
  To: caml-list

Hello!

I am using ocaml to analyse java bytecode 
(http://javalib.gforge.inria.fr/). The fact is that java has a float 
type which is coded on 32 bits and a double type which is coded on 64 
bits. I need to make corresponding types but ocaml only has a float 
coded on 64 bits (IEE 754 norm, which java respect too), so I don"t know 
how to get the float 32 bits.

Is there some Float32 module? I cannot just place my float 32 into a 
float 64 because I need to get same behaviour on basic operations.

Thanks!

Pierre Vittet

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

end of thread, other threads:[~2011-12-02 14:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-01 16:45 [Caml-list] float on 32 bits? Pierre Vittet
2011-12-01 17:57 ` Niki Yoshiuchi
2011-12-02  1:46 ` Jon Harrop
2011-12-02 14:07   ` Pierre Vittet

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