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:
- -1if- selfis less than other
- 0if- selfis equal to other
- -1if- selfis greater than other
- nilif self is- NaNor other is- NaN, because- NaNvalues are not comparable