Open yoogottamk opened 5 years ago
Does not round off values, which leads to inaccurate floating point representation
Just load the page, then try to calculate 0.1 + 0.2 and see the magic.
0.1 + 0.2
0.3
since 0.1 + 0.2 = 0.3.
0.1 + 0.2 = 0.3
To round off the values to the maximum number of decimal places given by the user to minimize such errors
Defect description
Does not round off values, which leads to inaccurate floating point representation
Steps to reproduce
Just load the page, then try to calculate
0.1 + 0.2
and see the magic.Expected result
0.3
since
0.1 + 0.2 = 0.3
.Suggested fix
To round off the values to the maximum number of decimal places given by the user to minimize such errors
Screenshot