Returns the absolute value of self.

assert 12.0.abs == 12.0
assert (-34.56).abs == 34.56
assert -34.56.abs == -34.56

Property definitions

core :: math $ Float :: abs
	# Returns the absolute value of `self`.
	#
	#     assert 12.0.abs == 12.0
	#     assert (-34.56).abs == 34.56
	#     assert -34.56.abs == -34.56
	fun abs: Float `{ return fabs(self); `}
lib/core/math.nit:246,2--251,40