Home   Help Search Login Register  

Author Topic: Float to integer?  (Read 473 times)

0 Members and 1 Guest are viewing this topic.

GeneralCoder

  • Guest
Float to integer?
« on: 25 Feb 2003, 12:36:03 »
Hi
Is it bossible to convert floating point value to integer?

Rubble_Maker

  • Guest
Re:Float to integer?
« Reply #1 on: 25 Feb 2003, 15:20:49 »
Yes its possible; just chop off the fraction:

_integer= _float - (_float %1)


GeneralCoder

  • Guest
Re:Float to integer?
« Reply #2 on: 25 Feb 2003, 19:50:01 »
Yes its possible; just chop off the fraction:

_integer= _float - (_float %1)



Cool, thanks! 8)