Open oneMord opened 1 day ago
0.48 2.38 / 5 10 = 1.95159999999
The correct answer should be 1.9516
exp4j uses doubles, which are floating-point numbers which are by definition inaccurate.
double
If you need arbitrary precision you need to use something like EvalEx which uses BigDecimal.
BigDecimal
0.48 2.38 / 5 10 = 1.95159999999
The correct answer should be 1.9516