Better Int()?

BlitzPlus Forums/BlitzPlus Programming/Better Int()?

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.

Too bad this function doesn't just return the integer part, like most other basic's do....

Function ClassicInt(flt#)
  If flt#< 0
    Return Ceil(flt#)
  Else
    Return Floor(flt#)
  EndIf
End Function