HTBasic Help
×
Menu
Index

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: