int.bmx 254 B

12345678910111213
  1. Rem
  2. Int is a signed 32 bit integer BlitzMax primitive type.
  3. End Rem
  4. Local a:Int
  5. ' the following values all print 0 as BlitzMax "rounds to zero"
  6. ' when converting from floating point to integer
  7. a=0.1;print a
  8. a=0.9;print a
  9. a=-0.1;print a
  10. a=-0.9;print a