<div dir="ltr">`Data.Decimal.Decimal` is quite close to Java's `BigDecimal` in intent but not quite the same: Java's `BigDecimal` has a 32-bit signed exponent whereas Haskell's `Decimal`'s exponent is 8-bit and unsigned. The difference shouldn't matter for the purposes of tracking money since accountancy rules are generally designed to prefer (carefully specified) rounding over keeping track of numbers with hundreds of decimal places.</div><div class="gmail_extra"><br><div class="gmail_quote">On 4 April 2017 at 15:13, ALeX Kazik <span dir="ltr"><<a href="mailto:alex@kazik.de" target="_blank">alex@kazik.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> Leaving aside the legal aspects of this, what would be Haskell's equivalent<br>
> of the BigDecimal format in Java (or Ruby)? Decimal (as used by hledger)?<br>
<br>
</span>Rational?<br>
<span class="HOEnZb"><font color="#888888"><br>
ALeX.<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</div></div></blockquote></div><br></div>