Skip to main content

Floatround Modes

info

A list of possible floatround modes which can be used by floatround.

ModeDescription
floatround_roundRound to the nearest integer. A fractional part of exactly 0.5 rounds upwards (this is the default)
floatround_floorRound downwards
floatround_ceilRound upwards
floatround_tozeroRound downwards for positive values and upwards for negative values ("truncate")
floatround_unbiasedThe same as floatround_round