sign¶ In std/math. fn sign(self: Int) : Int fn sign(self: Float) : Int fn sign(self: Decimal) : Int -1, 0 or 1 by the sign of self, as an Int: sign(-0.5) is -1.