1
0
mirror of https://github.com/php/php-src.git synced 2026-04-03 22:22:18 +02:00
Files
archived-php-src/ext/bcmath/tests/bcadd.phpt
Chun-Sheng, Li f2b50156bc Add some more test cases for BCMath
Closes GH-7851.
2021-12-30 13:02:56 +01:00

21 lines
362 B
PHP

--TEST--
bcadd() function
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
<?php
echo bcadd("1", "2"),"\n";
echo bcadd("-1", "5", 4),"\n";
echo bcadd("-1", "-5", 4),"\n";
echo bcadd("1", "-5", 4),"\n";
echo bcadd("1928372132132819737213", "8728932001983192837219398127471", 2),"\n";
?>
--EXPECT--
3
4.0000
-6.0000
-4.0000
8728932003911564969352217864684.00