Are all the system's floating points operations the same?

Posted by Jj on Stack Overflow See other posts from Stack Overflow or by Jj
Published on 2010-04-14T00:26:38Z Indexed on 2010/04/14 0:33 UTC
Read the original article Hit count: 289

Filed under:
|
|
|

We're making this web app in PHP and when working in the reports we have Excel files to compare our results to make sure our coding is doing the right operations.

Now we're running into some differences due floating point arithmetics. We're doing the same divisions and multiplications and running into slightly different numbers, that add up to a notable difference.

My question is if Excel is delegating it's floating point arithmetic to the CPU and PHP is also relying in the CPU for it's operations. Or does each application implements its own set of math algorithms?

© Stack Overflow or respective owner

Related posts about floating-point

Related posts about php