Relative Content

Tag Archive for floating-point

Why is BigDecimal the best data type for currency? [duplicate]

This question already has answers here: When do rounding problems become a real problem? Is the least significant digit being one off really a big deal? [duplicate] (3 answers) Closed 10 years ago. I was reading this question and the accepted answer says that BigDecimal is the best type for representing currency values. I’ve also […]