Rounds the value of a float to its nearest integer value

assert 1.67.round == 2.0
assert 1.34.round == 1.0
assert -1.34.round == -1.0
assert -1.67.round == -2.0

Property definitions

core :: math $ Float :: round
	# Rounds the value of a float to its nearest integer value
	#
	#     assert 1.67.round == 2.0
	#     assert 1.34.round == 1.0
	#     assert -1.34.round == -1.0
	#     assert -1.67.round == -2.0
	fun round: Float `{ return round(self); `}
lib/core/math.nit:287,2--293,43