What class should I use for representation of money to avoid most rounding errors?
Should I use Decimal
, or a simple built-in number
?
Is there any existing Money
class with support for currency conversion that I could use?
Any pitfalls that I should avoid?