Method: Flt::FormatBase#convert_to
- Defined in:
- lib/float-formats/classes.rb
#convert_to(fpclass, options = {}) ⇒ Object
Converts a floating point value to another format
192 193 194 |
# File 'lib/float-formats/classes.rb', line 192 def convert_to(fpclass, = {}) Numerals::Conversions.convert(self, .merge(type: fpclass)) end |