SaturnRingLibrary 0.9.1
SGL wrapper
 
Loading...
Searching...
No Matches

◆ Round()

Fxp SRL::Math::Types::Fxp::Round ( ) const
inlineconstexpr

Rounds to the nearest integer.

Returns
Fixed-point value rounded to nearest integer.

Rounds to the nearest integer, with halfway cases rounded away from zero. This matches the common mathematical rounding behavior.