Revision 74d988b0 snf-common/synnefo/util/number.py
b/snf-common/synnefo/util/number.py | ||
---|---|---|
33 | 33 |
# interpreted as representing official policies, either expressed |
34 | 34 |
# or implied, of GRNET S.A. |
35 | 35 |
|
36 |
|
|
36 | 37 |
def strbigdec(bignum, nr_lsd=12): |
37 | 38 |
all_digits = str(bignum) |
38 | 39 |
ms_digits = all_digits[:-nr_lsd] |
... | ... | |
52 | 53 |
else: |
53 | 54 |
display = "[%s%1.0e]" % (approx, ms_num) |
54 | 55 |
return display |
55 |
|
Also available in: Unified diff