| Class | Lisp::Format::Directives::ExpFP |
| In: |
lib/facet/lisp-format.rb
|
| Parent: | Directive |
Represents the ~E (Exponential floating-point) directive. This outputs floating point values in what is known as exponential or scientific floating point format, such as 1.0e+3 for 1000.
Outputs the argument using exponential floating-point format. The full form is
~w,d,e,k,overflowchar,padchar,exponentchar@E
with the following interpretations
An ArgumentError is raised if the argument is not a number or a string that can be converted to a number.