Floatround modes

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

Floatround mode Description
floatround_round Round to the nearest integer. A fractional part of exactly 0.5 rounds upwards (this is the default).
floatround_floor Round downwards.
floatround_ceil Round upwards.
floatround_tozero Round downwards for positive values and upwards for negative values (“truncate”).