posted 11 years ago
Hi,
I have this formula which divides an int by int and then multiplies it by 0.3, the I save this in variable "fre". according to my calculator variable fre should be 0.2, but my program returns 0.19999999999999998. I dont know what am I doing wrong?
variables values are:
freqValue:2
maxFreqInPage:3
and here is the code snippet:
I have converted the ints to doubles.
Thank you!