Toms Homepage
  Home    Downloads    Your Account    Forums  
  Create an account
Modules
· Home
· Games
· My Gallery
· PHP Manual
· PHP-Nuke HOWTO
· Web Links
· Your Account
 
Who's Online
Welcome, Anonymous
Nickname

Password

Security Code
Security Code
Type Security Code


(Register)

Membership:
Latest: DonLackey
New Today: 206
New Yesterday: 473
Overall: 44889

People Online:
Visitors: 92
Members: 23
Total: 115

Online Now:
COM NickiPola
COM JanineAbn
 CindaCNA
COM RLQTheres
COM MelanieXR
COM ModestoZe
COM AlyssaKin
COM SergioQss
COM AletheaI6
COM Monte2102
COM CedricLem
COM ClaytonTW
COM ScottYGDL
COM Cynthia44
COM MelinaDow
COM FidelGuin
COM PreciousS
COM ToddMcnut
COM KarlaCard
 TanyaFann
COM MarthaStu
 LynnHoff
COM BessClayt
 
bcpowmod

bcpowmod

(PHP 5)

bcpowmod --  Raise an arbitrary precision number to another, reduced by a specified modulus

Description

string bcpowmod ( string x, string y, string modulus [, int scale] )

Use the fast-exponentiation method to raise x to the power y with respect to the modulus modulus. The optional scale can be used to set the number of digits after the decimal place in the result.

Note: Because this method uses the modulus operation, non-natural numbers may give unexpected results. A natural number is any positive non-zero integer.

Examples

The following two statements are functionally identical. The bcpowmod() version however, executes in less time and can accept larger parameters.

<?php
$a
= bcpowmod($x, $y, $mod);

$b = bcmod(bcpow($x, $y), $mod);

// $a and $b are equal to each other.

?>

See Also

bcpow() and bcmod().

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2004 by Tom Nitzschner.
Web site engine code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.099 Seconds

:: VereorLCARS phpbb2 style by Vereor :: PHP-Nuke theme by www.nukemods.com ::