round(decimal)rounded Type: For any units u(Number{u}) -> Number{u}

Rounds the given number to the nearest whole number (integer).

Numbers that end in .5 (which are halfway between two whole numbers) are rounded towards the nearest even number, sometimes known as banker's rounding.

ExamplesClick an example to insert it
round(0.333)0
round(2)2
round(0.5)1
round(1.5)2