Hex Editor - Binary File Editing Software for Windows
Download Hex Editor Neo Hide this button

/ Division Operator

This operator computes the result of division of one operand by another.

Syntax:

exp1 / exp2

If the divisor evaluates to zero, a run-time error occurs. If the result of the expression is used as an integer value, the result of the division is truncated to the nearest integer value.

4 / 2       // evaluates to 2
3 / 2       // evaluates to 1
5 / 0       // a run-time error occurs