Integer arithmetic (Definition)

Arithmetic operations performed on integer values.

Arithmetic in the JavaScript interpreter is basically floating point although many values will be integers. If a numeric value is output then it will automatically be truncated to an integer if there is no fractional part. There are several functions and operators available for explicitly converting floating point values to integer values:

See also:Math object, Math.abs(), Math.ceil(), Math.floor(), Math.round(), Mathematics, Remainder (%), Remainder then assign (%=)