caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Data type representing 'Money'
@ 2009-05-16  7:27 Conglun Yao
  2009-05-17  2:23 ` [Caml-list] " Edgar Friendly
  0 siblings, 1 reply; 5+ messages in thread
From: Conglun Yao @ 2009-05-16  7:27 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 317 bytes --]

Hi all,

Is there any data type could be used to represent 'Money'  in OCaml, similar
to BigDecimal.
I see a lot of programs using float directly. Maybe Num would be better, but
less document could be found, for example, how to represent 20.27

Or there already exist a better solution. Thanks for any help.

Conglun

[-- Attachment #2: Type: text/html, Size: 355 bytes --]

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

end of thread, other threads:[~2009-05-17 16:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-16  7:27 Data type representing 'Money' Conglun Yao
2009-05-17  2:23 ` [Caml-list] " Edgar Friendly
2009-05-17  7:10   ` Florent.Ouchet
2009-05-17 16:15     ` Harrison, John R
2009-05-17 11:29   ` Richard Jones

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