Hi All,
I have a simple perl script which subtracts two variables holding decimal numbers and the results is not as expected.
$a = 417747646.853143
$b = 417747646.853142
$c = $a-$b
expected result = $0.000001
actual result = -9.5367431640625e-07
any idea on why I am getting wrong results?
I have a simple perl script which subtracts two variables holding decimal numbers and the results is not as expected.
$a = 417747646.853143
$b = 417747646.853142
$c = $a-$b
expected result = $0.000001
actual result = -9.5367431640625e-07
any idea on why I am getting wrong results?