Representing Money and other numbersClass to represent real world numbers like money where a precision loss due to division is not acceptable. The main idea behind the ...
Class to represent real world numbers like money where a precision loss due to division is not acceptable. The main idea behind the class is that it stores the number as a fraction and hence avoids the rounding error introduced during division.