|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-28 14:04 UTC] torben@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jun 15 07:00:01 2026 UTC |
In the following script the operator "/" does NOT perform an integer division as said in the documentation: In chapter "Arithmetic Operators" the online documentation sais: "The division operator ("/") returns an integer value (the result of an integer division) if the two operands are integers (or strings that get converted to integers)." Though the script <?php echo "1 / 3 = ". 1/3 ?> produces the following output: 1 / 3 = 0.33333333333333