round_toward_zero_t#

Fully qualified name: carb::math::round_toward_zero_t

Defined in carb/math/MulDiv.h

struct round_toward_zero_t#

A rounding policy for mulDiv that rounds the result toward zero, the default behavior for integer division.

When passed to mulDiv(), this policy will always round the result toward zero. Positive numbers round toward the floor; negative numbers round less negative. This is the default for integer operations, so this rounding policy is effectively a no-op. Use round_toward_zero or round_floor with the call to mulDiv().