English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Data type representing 'Money'
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-05-16 (07:27)
From: Conglun Yao <yaoconglun@g...>
Subject: Data type representing 'Money'
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.