PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<bcmulbcpowmod>
Last updated: Mon, 16 Jul 2012

bcpow

(PHP 3, PHP 4, PHP 5)

bcpow --  Raise an arbitrary precision number to another

Description

string bcpow ( string x, string y [, int scale] )

Raise x to the power y. The optional scale can be used to set the number of digits after the decimal place in the result.

例子 1. bcpow() example

<?php

echo bcpow('4.2', '3', 2); // 74.08

?>

参见

bcpowmod()bcsqrt().




<bcmulbcpowmod>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST