Coverage for /home/kale/hacking/libraries/nonstdlib/nonstdlib/sci.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
#!/usr/bin/env python3 # encoding: utf-8
""" Convert the given floating point number into scientific notation, using unicode superscript characters to nicely render the exponent. """
# Handle the corner cases of zero and non-finite numbers, which can't be # represented using scientific notation.
# Handle the corner case where the mantissa would round up to 10 (at the # given level of precision) by incrementing the exponent.
|