From: Conglun Yao <yaoconglun@gmail.com>
To: caml-list@inria.fr
Subject: Data type representing 'Money'
Date: Sat, 16 May 2009 08:27:36 +0100 [thread overview]
Message-ID: <f7b50d2a0905160027g532878feo9ee7191ccde40a1d@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2009-05-16 7:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-16 7:27 Conglun Yao [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f7b50d2a0905160027g532878feo9ee7191ccde40a1d@mail.gmail.com \
--to=yaoconglun@gmail.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox