How to detect a double's significant digits

mrstephengross mrstephengross at hotmail.com
Thu May 5 13:57:43 EDT 2005


So how can I get the kind of information I want then?

For example:

0.103 --> 3
0.0103 --> 4
0.00103 --> 5 
0.000103 --> 6 
0.0000103 --> 7 

Any ideas?
--Steve




More information about the Python-list mailing list