Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for December 5, 2013
Deadline scheduling: coming soon?
LWN.net Weekly Edition for November 27, 2013
ACPI for ARM?
LWN.net Weekly Edition for November 21, 2013
(For that matter, IEEE754 requires these semantics when comparing floating point numbers if one of the numbers in the comparison is a NaN.)
Posted Dec 9, 2008 13:12 UTC (Tue) by khim (subscriber, #9252)
That's two cases I knew as well. But in both SQL and C disaster is
localized: in SQL you can use "NOT NULL" mark to make sure there will be no
NULL in the column, in C you can avoid floating point altogether (and
floating point numbers are anomany in many other reasons). In PHP there are
no simple rule to avoid this.
Actually all languages can be marked as "nice", "bad, but unavoidable"
and "bad AND avoidable". Python and Java are first (they do have problems
surprises but almost impossible to avoid in practice) and PHP is in the
Posted Dec 10, 2008 11:17 UTC (Wed) by ballombe (subscriber, #9523)
In the end it is more of a hardware issue (if you want to use the FPU of your machine in a portable way, you have to deal with IEEE754 semantic).
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds