note 60537 added to function.bcpowmod
| From: | Jasonatv7studiosdotcom at osu1 dot php dot net | Date: | Tue, 10 Jan 2006 15:37:18 +0000 |
| Subject: | note 60537 added to function.bcpowmod | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-101492@lists.php.net to get a copy of this message | ||
Do not use ewilde aht bsmdevelopment dawt com's function.
Look at the example... don't use an unnecessary while loop...
<?php
$a = bcpowmod($x, $y, $mod);
$b = bcmod(bcpow($x, $y), $mod);
// $a and $b are equal to each other.
?>
Here is your answer:
bcmod(bcpow($x, $y), $mod);
----
Manual Page -- http://www.php.net/manual/en/function.bcpowmod.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60537
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60537&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60537&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60537&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60537&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60537&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60537&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60537&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60537&report=yes
Search -- http://master.php.net/manage/user-notes.php