xref: /PHP-7.4/ext/bcmath/tests/bcpow.phpt (revision 870ed510)
1--TEST--
2bcpow() function
3--SKIPIF--
4<?php if(!extension_loaded("bcmath")) print "skip"; ?>
5--INI--
6bcmath.scale=0
7--FILE--
8<?php
9echo bcpow("1", "2"),"\n";
10echo bcpow("-2", "5", 4),"\n";
11echo bcpow("2", "64"),"\n";
12echo bcpow("-2.555", "5", 2),"\n";
13?>
14--EXPECT--
151
16-32.0000
1718446744073709551616
18-108.88
19