Previous Topic: Arithmetic Multiplication Operator

Next Topic: Conditional Operator

Arithmetic Division Operator

The arithmetic division operator (/) returns the quotient of two operands.

If the first operand is a number, but the second is a string or a Boolean, the second operand is converted to a number.

All division is integer division.

Note: Division by zero, which is arithmetically undefined, always results in an error in this environment.

Examples:

1 / 2
Result = 0

1 / "JUAN"
Result = 0

100 / "32JUAN"
Result = 3

More information:

Arithmetic Addition Operator

Arithmetic Subtraction Operator

Arithmetic Multiplication Operator


Copyright © 2010 CA. All rights reserved. Email CA about this topic