0.35 can't be represented exactly as an IEEE float, hence the "noise" you see. That number is as close at it can store.
You can get closer with Double, but it's still not precise.
Your best bet, if you really needed exact figures all the time, would be to use some kind of arbitrary precision math library. They tend to store numbers "as is", and therefore should not lose precision in the same way.
Example : http://code.google.com/p/maxmods/wiki/MapmModule
You can get closer with Double, but it's still not precise.
Your best bet, if you really needed exact figures all the time, would be to use some kind of arbitrary precision math library. They tend to store numbers "as is", and therefore should not lose precision in the same way.
Example : http://code.google.com/p/maxmods/wiki/MapmModule