Comment 0 for bug 387070

Revision history for this message
Hoffmann (hoffmann-p) wrote : gcalctool calculates wrong

Binary package hint: gcalctool

I was trying to calculate a radio channel. The frequency of the first channel is 74.215 MHz, the frequency of my channel is 75.695 MHz. The distance between two channels is 0,02 Mhz and the first channel is #347. (Just for the interested ones, this is german 2m-Band BOS).

Now I use Int(347 - (75.695 - 74.215)/0.02) = 420.
But if I do it without Int() it results in 75.695 - 74.215)/0.02 = 421.
I looked it up and the right channel would be 421. So where is the problem? If I convert 421 to Int it results in 421, so the Int-function can't be the problem as well...