Using the arbitrary-precision functions for exact integer arithmetic : Math Functions « Math « PHP






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>");
}

?>
           
       








Related examples in the same category

1.rand demo
2.Exp
3.Difference between ceil and floor
4.Floor in action
5.Round in action
6.Get the Power
7.sqrt