November 2003
Beginner to intermediate
480 pages
15h 3m
English
div — integer division
number1 div number2
Both numbers are treated as reals; the first is divided by the second, and the result is coerced to an integer by throwing away its fractional part. Notice that this is not the same as AppleScript’s normal real-to-integer coercion behavior.
4 div 5 -- 0 (4 / 5) as integer -- 1
Read now
Unlock full access