Dart calculations are off. We're running into rounding issues (financial app)
Here an example
Dartpad output
Hours : 7.5
Rate : 19.61
Val (Hours * Rate) : 147.075
Val * 100 (should be 14707.5) : 14707.499999999998
Round Val (now rounds down) : 14707
Val / 100 : 147.07 (should have been 147.08)
This is causing rounding errors displaying values to 2 decimal places.
Is there a way to accomplish this accurately in dart?