class TTFunk::SciForm
Attributes
Public Class Methods
Source
# File lib/ttfunk/sci_form.rb, line 8 def initialize(significand, exponent = 0) @significand = significand @exponent = exponent end
Public Instance Methods
Source
# File lib/ttfunk/sci_form.rb, line 17 def ==(other) case other when Float other == to_f # rubocop: disable Lint/FloatComparison when self.class other.significand == significand && other.exponent == exponent else false end end
Also aliased as: eql?