Jonathan Ernst
jonathan@ernstfamily.ch 2006
Claude Paroz
claude@2xlibre.net 2006-2009
Laurent Coudeur
laurentc@iol.ie 2009-2010
Alain Lojewski
allomervan@gmail.com 2014
Guillaume Bernard
associations@guillaume-bernard.fr 2015-2021
Irénée Thirion
irenee.thirion@e.email 2023

# Rounding

Nearest integer values tying away from zero are calculated using the [ and ] symbols or round function.

[0.5]

round (0.5)

Nearest integer values toward -∞ also known as floor values are calculated using the ⌊ and ⌋ symbols or floor function.

⌊0.5⌋

floor (0.5)

Nearest integer values toward +∞ also known as ceiling values are calculated using the ⌈ and ⌉ symbols or ceil function.

⌈0.5⌉

ceil (0.5)

Nearest integer values toward 0 i.e. the integer components are calculated using int function.

The fractional components are calculated using frac function.

int (0.5)

frac (0.5)