Mega Code Archive

 
Categories / Php / Math
 

Using the arbitrary-precision functions for exact integer arithmetic

<? for ($x = 1; $x < 25; $x++) {   print("$x to the $x power is " . bcpow($x, $x) . "<BR>"); } ?>