This is an old version, view current version.

12.4 Integer division with operator/

Deprecated: Using / with two integer arguments is interpreted as integer floor division, such that

\[ 1 / 2 = 0 \]

This is deprecated due to its confusion with real-valued division, where

\[ 1.0 / 2.0 = 0.5 \]

Replacement: Use the integer division operator operator%/% instead.