ID:               29738
 Updated by:       [EMAIL PROTECTED]
 Reported By:      support at pulse-hosting dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Linux RedHat
 PHP Version:      Irrelevant
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

There is no "%() function" in PHP.
Check appropriate part of the documentation:
http://www.php.net/manual/en/language.operators.arithmetic.php


Previous Comments:
------------------------------------------------------------------------

[2004-08-18 17:40:33] support at pulse-hosting dot com

Description:
------------
I can't seem to work out why, but the %() function doesn't always
return the right out. For example 25% (40); returns 25 yet 25% of 40 is
15. I've checked and checked again and the error is on php's side and
not mine. Other percentages work yet some don't.

Reproduce code:
---------------
$sum = 25% (40);
echo "25% of 40 is ".$sum;

Expected result:
----------------
25% of 40 is 15

Actual result:
--------------
25% of 40 is 25


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29738&edit=1

Reply via email to