On Wed, Aug 08, 2001 at 07:06:13PM +1000, ReDucTor wrote:
> you must use float not int :D

Using float doesn't solve the problem, does it? Point is that when
using int, the damn thing doesn't get it straight. And that's WEIRD.
I mean the result of (8.85-8)*100 is already an integer and not
converting it to an integer the result is perfectly okay.

Btw: (int)((8.85*100)-(8*100)), _does_ return a correct result.

-- 

* R&zE:

-- »»»»»»»»»»»»»»»»»»»»»»»»
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
--
-- http://www.datalink.nl
-- ««««««««««««««««««««««««

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to