Is there a way in Python to count the significant figures in a double/float/etc? I'm not seeing an easy way to do this, but I'd expect it to be in the library.
Thanks in advance.
You may be interested in an arbitrary precision floating point library such as this one: