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.

No, because dividing an INT by an INT results in an INT. If you want a floating point result, one of the sides of the division must be a float. You can try these options:

a# = Int(123.456) + (Int(123.456)/1000.0)

or

a# = Int(123.456) + Float(Int(123.456)/1000)