Back
What data type should you use for money in Java?
Java has Currency class that represents the ISO 4217 currency codes. BigDecimal is the best type for representing currency decimal values.
Joda Money has provided a library to represent money.
31k questions
32.8k answers
501 comments
693 users