"Strong typing vs. strong testing"

Keith Thompson kst-u at mib.org
Wed Sep 29 16:00:56 CEST 2010


Erik Max Francis <max at alcyone.com> writes:
> Keith Thompson wrote:
>> Erik Max Francis <max at alcyone.com> writes:
>> [...]
>>>  >>> print c # floating point accuracy aside
>>> 299792458.0 m/s
>> 
>> Actually, the speed of light is exactly 299792458.0 m/s by
>> definition.  (The meter and the second are defined in terms of the
>> same wavelength of light; this was changed relatively recently.)
>
> I know.  Hence why I wrote the comment "floating point accuracy aside" 
> when printing it.

Ok.  I took the comment to be an indication that the figure was
subject to floating point accuracy concerns; in fact you meant just
the opposite.

-- 
Keith Thompson (The_Other_Keith) kst-u at mib.org  <http://www.ghoti.net/~kst>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"



More information about the Python-list mailing list