Module: FPHelpers

Defined in:
lib/fixedpt/fixedpt.rb

Instance Method Summary collapse

Instance Method Details

#max(x, y) ⇒ Object



9
10
11
# File 'lib/fixedpt/fixedpt.rb', line 9

def max(x,y)
  return x > y ? x : y
end

#min(x, y) ⇒ Object



13
14
15
# File 'lib/fixedpt/fixedpt.rb', line 13

def min(x,y)
  return x < y ? x : y
end