Hi
I have made a simple calculator. It works almost as it should except with multiplying with decimals.
When I try to multiply: 0.1*2.8 i got the result 0.27999999999999997 . It should be 2.8.
Here is my code:
function regnut() {
fotm.maks.value=0.1*2.8;
}
Have anybody hade a similar problem?
Jørn Arild Andenæs
jaa@jaa.no
I have made a simple calculator. It works almost as it should except with multiplying with decimals.
When I try to multiply: 0.1*2.8 i got the result 0.27999999999999997 . It should be 2.8.
Here is my code:
function regnut() {
fotm.maks.value=0.1*2.8;
}
Have anybody hade a similar problem?
Jørn Arild Andenæs
jaa@jaa.no