¡@

Home 

python Programming Glossary: leftdigits

Print number in engineering format

http://stackoverflow.com/questions/12311148/print-number-in-engineering-format

many digits go to the left of the decimal initially with leftdigits self._exp len self._int The following table shows what the values.. what the values are for those two things ._exp ._int len leftdigits Decimal 1000000 0 '1000000' 7 7 Decimal '1E 6' 6 '1' 1 7.. 7 The code that continues after that is if self._exp 0 and leftdigits 6 # no exponent required dotplace leftdigits elif not eng #..