Method: Flt::FormatBase.epsilon

Defined in:
lib/float-formats/classes.rb

.epsilon(sign = +1) ⇒ Object

This is the difference between 1.0 and the smallest floating-point value greater than 1.0, radix_power(1-significand_precision)



751
752
753
754
755
756
757
758
# File 'lib/float-formats/classes.rb', line 751

def self.epsilon(sign=+1)
  s = sign
  #m = 1
  #e = 1-significand_digits
  m = minimum_normalized_integral_significand
  e = 2*(1-significand_digits)
  return_value s,m,e, false
end