0

I have this code in javascript

let a = 1;
let b = 0.8;
let c = a-b

I expect the value of c to be equal to 0.2, but the value I get is 0.19999999999999996 does any one have an explanation

M.Amer
  • 658
  • 6
  • 13

0 Answers0