core :: Float :: abs
self
assert 12.0.abs == 12.0 assert (-34.56).abs == 34.56 assert -34.56.abs == -34.56
# 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); `}