I have some data like RM 28.51 (Currency), RM30.28(Currency) in my table and need to use these data to do some calculation
my solution is to parseFloat(28.51).tofixed(2) + parseFloat(30.28).tofixed(2)
but when the moment more and more data come in , sometimes they will some decimal point error shown as result
Example my result at the end will show 3859.39 but the actual is 3859.40
Is there any better solution?