Bug #52457 [NEW]: A natural number is any positive non-zero integer

From: Date: Tue, 27 Jul 2010 13:33:14 +0000
Subject: Bug #52457 [NEW]: A natural number is any positive non-zero integer
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4750@lists.php.net to get a copy of this message
From: hm2k Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Bug Bug description:A natural number is any positive non-zero integer Description: ------------ As a user rightly pointed out a couple of years ago (http://www.php.net/manual/en/function.bcpowmod.php#73406), the statement is incorrectly written: "Note: Because this method uses the modulus operation, non-natural numbers may give unexpected results. A natural number is any positive non-zero integer. " Which is directly from the documentation, meanwhile it is else where defined as: "In mathematics, there are two conventions for the set of natural numbers: it is either the set of positive integers {1, 2, 3, ...} according to the traditional definition; or the set of non-negative integers {0, 1, 2, ...} according to a definition first appearing in the nineteenth century." @see http://en.wikipedia.org/wiki/Natural_number Perhaps it should read: "Note: This method uses the modulus operation, which may produce unexpected results if supplied with anything other than a non-zero positive integer." -- Edit bug report at http://bugs.php.net/bug.php?id=52457&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52457&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52457&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52457&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52457&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52457&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52457&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52457&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52457&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52457&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52457&r=support Expected behavior: http://bugs.php.net/fix.php?id=52457&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52457&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52457&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52457&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52457&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52457&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52457&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52457&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52457&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52457&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52457&r=mysqlcfg

« previous php.doc.bugs (#4750) next »