php tutorials

Floating Point Comparisons in PHP and Javascript

Here's the problem. Say you're comparing two floating point numbers a (71.00) and b (71.00) to see if they are the same. The problem is if you've done any calculations to arrive at these numbers they might actually be stored as 71.00000000001. Now if one...
Home
Bookmark Tutorial
Remove Frame
Report Broken Link