Some languages, such as PowerBasic, have a variable type called "currency" which doesn't seem to have this problem, although it's a bit slower than floats I hear. Using currency variables, 34.1 does, indeed, equal 34.1.
For those that are interested, the currency type actually represents the defined float with binary coded decimal internally. It uses 10 bytes internally to do this...
Russell
For those that are interested, the currency type actually represents the defined float with binary coded decimal internally. It uses 10 bytes internally to do this...
Russell