numpy.allclose()
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Sun Jan 18 05:25:39 EST 2015
Ian Kelly wrote:
> On Sat, Jan 17, 2015 at 8:09 PM, Steven D'Aprano
> <steve+comp.lang.python at pearwood.info> wrote:
>> I'm guessing that can only have come from the mindset of C/C++
>> programmers, where this sort of thing is considered acceptable:
>
> Maybe. The journal reference in the second link I posted dates the
> practice back to at least 1975, a time predating K&R C, when it was
> most notable as the language that Unix was written in. I wouldn't be
> surprised if this actually originated from Fortran.
Ah, the good old days, when computer designers built machines where 1.0*X
could overflow and X-0.0 could underflow.
--
Steven
More information about the Python-list
mailing list