Significant figures calculation

Erik Max Francis max at alcyone.com
Mon Jun 27 23:45:19 EDT 2011


Chris Angelico wrote:
> On Tue, Jun 28, 2011 at 12:56 PM, Steven D'Aprano
> <steve+comp.lang.python at pearwood.info> wrote:
>> Zero sig figure: 0

That's not really zero significant figures; without further 
qualification, it's one.
> Is 0.0 one sig fig or two?

Two.
> (Just vaguely curious. Also curious as to
> whether a zero sig figures value is ever useful.)

Yes. They're order of magnitude estimates. 1 x 10^6 has one 
significant figure. 10^6 has zero.
-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y!M/Skype erikmaxfrancis
 I would have liked to have seen Montana.
 -- Cpt. Vasily Borodin


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /