Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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.

Conglun