lib.utils.sci_notation¶
- lib.utils.sci_notation(value, sigfigs, filler='e')¶
Scientific notation.
Return a string corresponding to value with the number of significant digits
sigfigs, with 10s exponent fillerfillerplaced between the decimal value and 10s exponent.>>> sci_notation(123, 1, 'e') '1e2' >>> sci_notation(123, 3, 'e') '1.23e2' >>> sci_notation(0.126, 2, 'e') '1.3e-1'
- Created by William Rusnack
github.com/BebeSparkelSparkel linkedin.com/in/williamrusnack/ williamrusnack@gmail.com