abstract struct Number
Overview
The top-level number type.
Included Modules
- Comparable(Number)
Defined in:
what_happen/extension.crInstance Method Summary
-
#<=>(other) : Int32?
The comparison operator.
Instance methods inherited from class Object
<=>(other)
<=>,
what_happen?(expect) : Array(String)
what_happen?
Instance Method Detail
def <=>(other) : Int32?
#
The comparison operator.
Returns:
-1ifselfis less than other0ifselfis equal to other-1ifselfis greater than othernilif self isNaNor other isNaN, becauseNaNvalues are not comparable