# Int represents a 64-bit signed integer.
# Inherits numeric helper methods from Num.
#
# x = 42
# x.zero?() # false
# x.abs # 42
# x.is_a?(Num) # true
#
class Int < Num {
# Returns true if the integer is even.
#
# 4.even?() # true
# 3.even?() # false
#
def even?() { self % 2 == 0 }
# Returns true if the integer is odd.
#
# 3.odd?() # true
# 4.odd?() # false
#
def odd?() { self % 2 != 0 }
# Returns the larger of self and other.
#
# 5.max(10) # 10
# 10.max(5) # 10
#
def max(other) { if self > other { self } else { other } }
# Returns the smaller of self and other.
#
# 5.min(10) # 5
# 10.min(5) # 5
#
def min(other) { if self < other { self } else { other } }
}