|
|
|
|
|
by luhn
2309 days ago
|
|
Speaking from experience, if you exclusively deal with integers internally and then apply the appropriate formatting when outputting to the user (which you need to deal with regardless of internal representation), it makes dealing with monetary data so much easier. Integers are generally better supported, faster, and more convenient for most languages, databases, and serialization formats. |
|
If you don’t need irrational numbers (few financial applications do?), the tuple of (value, scale) can take you very far.