i have 2 numbers with decimals
var a = 455.7530
var b = 544.8025
var k = parseFloat(a)+parseFloat(b)
Expected Output is 1000.5555
Actual Output is 1000.5554999999999
Please advice which method i should use to add two numbers with decimal
i have 2 numbers with decimals
var a = 455.7530
var b = 544.8025
var k = parseFloat(a)+parseFloat(b)
Expected Output is 1000.5555
Actual Output is 1000.5554999999999
Please advice which method i should use to add two numbers with decimal