Standard.BaseDataDecimalsignumOn this pageDecimal.signum signum Group: Math Documentation Returns the sign of the number. Examples Compute the sign of a Decimal. Decimal.new "-12.345" . signum # => -1