RoundTowardZero
RoundTowardZero, often abbreviated RTZ and also described as round toward zero, is a rounding mode used in floating-point arithmetic. Under this mode, the exact mathematical result of a computation is approximated by discarding the fractional part and keeping the sign unchanged. In other words, positive values are rounded downward toward zero and negative values are rounded upward toward zero. Examples: 3.7 becomes 3, while -3.7 becomes -3. If the exact result is already an integer, it remains unchanged.
In IEEE 754, RTZ is one of the standard rounding modes used to determine the final representable
Relation to integer conversion and language semantics: RTZ is closely aligned with how many programming languages
Uses and considerations: RTZ is useful when a predictable, sign-preserving truncation is desired, such as certain