liczby parzyste od 0 do 100 javascript

Witam. Piszę z prośbą o pomoc. Chce zrobić stringgrida z randomowymi liczbami od (-20 ; 20) i potem zsumować parzyste i nieparzyste liczby. Pierwsza część wygląda tak. Var I,J : Integer ; begin for I := 0 to stringgrid1.Rowcount-1 Do for J := 0 to stringgrid1.Colcount-1 do stringgrid1.Cells[J,I] := Inttostr(Random(40)-20) To do this, I multiply by 100 to enclose the value to decimal. If I test 0.07, the script does not calculated the value 7, but the value 7.00000001. I could round the value, but I would like to know why the value is calculated this way.