Top | Up (Operators) | < Previous (DEC) | Next (MOD) >
Integer division.
a DIV b
= INT( INT(a) / INT(b) )
, where INT
rounds towards 0.
a% DIV b%
PRINT 5 DIV 2 '2
PRINT -5 DIV 2 '-2
PRINT 1 DIV 0.5 'divide by 0 error
Fixed int DIV real
1
1 SmileBoom, “Bug Fixes in Ver. 3.3.0 (April 26, 2016)” http://smilebasic.com/en/debug/archive/