Strange INT behavior

Blitz3D Forums/Blitz3D Beginners Area/Strange INT behavior

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Me too. A float is of the form S*M*2^E.
S: sign (-1 or 1), 1 bit
M: mantissa, a 23 bits integer
E: exponent, a 8 bits integer

The size of M directly dictates the maximum number of digits after the decimal point.

[Edit:] Corrected myself, it's a 8 bits long exponenet, not 7 bits.