Method: Flt::FormatBase.from_bits_text
- Defined in:
- lib/float-formats/classes.rb
.from_bits_text(txt, base) ⇒ Object
Defines a floating-point number from a text representation of the encoded integral value in a given base. Returns a Value.
885 886 887 888 |
# File 'lib/float-formats/classes.rb', line 885 def self.from_bits_text(txt, base) i = Numerals::Format[].read(txt, type: Integer, base: base) from_bits i end |