Syntax
argument1 / argument2
Description
The division operator is used to divide (or to find the ratio of) two
numbers and return an integer or floating point result result. Division is
the inverse of multiplication, *. The
arguments argument1 and argument2 can be any valid numerical
expression.
Example
DIM x AS SINGLE
x=123.456
PRINT n / 5
n =
600000 / 23
PRINT n
PRINT
x/n
The output would look like:
0
26086
4.732654E-02
Differences from other BASICs
- None with PBASIC
- Visual BASIC returns a floating point result
See also