spewn
Programmer
- May 7, 2001
- 1,034
i have a shopping cart that i am trying to debug. it seems that it works except with certain amounts. upon investigation, i noticed that when multiplied together, the result is below:
Code:
num1=0.10;
num2=3;
num3=num1*num2;
//num3 now equals 0.30000000004.
anyone know why this is?
- g