Hi,
Can anyone think of a smart way to determine the odrer of magnintude of a number.
3459 is of the order 1000
3 is of the order 1
0.0056 is of the order 0.001
len(cstr(int(TheNumber))) works for numbers larger than 1, but not for numbers between 0 and 1.
Sunaj
Can anyone think of a smart way to determine the odrer of magnintude of a number.
3459 is of the order 1000
3 is of the order 1
0.0056 is of the order 0.001
len(cstr(int(TheNumber))) works for numbers larger than 1, but not for numbers between 0 and 1.
Sunaj