To properly display this page you need a browser with JavaScript support.
HTBasic Help
×
Menu
Index
Search
Search
Reference
HTBasic Keywords
DIV - Returns the quotient of an integer divide operation.
Previous page
Next page
Print version
(c) TransEra Corp, 2021
To properly display this page you need a browser with JavaScript support.
DIV
Returns the quotient of an integer divide operation.
dividend DIV divisor
Usage:
PRINT "Miles =";Feet DIV 5280
Example:
DIV.BAS
Description:
The result of
DIV
is an
INTEGER
if both arguments are
INTEGER
and
REAL
otherwise. If the divisor is zero, an error is returned. The definition of A
DIV
B is
A
DIV
B =
FIX
(A/B).
See Also:
MOD
,
MODULO