PyDocs

Nav

Numeric and Mathematical Modules

Decimal.to_eng_string

decimal

method of Decimal
  • Decimal.to_eng_string(context=None)
Convert to an engineering-type string.

Engineering notation has an exponent which is a multiple of 3, so
there are up to 3 digits left of the decimal place.  For example,
Decimal('123E+1') is converted to Decimal('1.23E+3').

The value of context.capitals determines whether the exponent sign
is lower or upper case.  Otherwise, the context does not affect the
operation.
0 Examples
No examples for decimal/Decimal.to_eng_string.
See Also
No see-alsos for decimal/Decimal.to_eng_string
0 Notes
No notes for Decimal.to_eng_string