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

23 lines
351 B
PHP

--TEST--
bcadd() with non-integers
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=5
--FILE--
<?php
echo bcadd("2.2", "4.3", "2")."\n";
echo bcadd("2.2", "4.3", 2)."\n";
echo bcadd("2.2", "-7.3", "1")."\n";
echo bcadd("2.2", "-7.3", 1)."\n";
echo bcadd("-4.27", "7.3")."\n";
echo bcadd("-4.27", "-7.3");
?>
--EXPECT--
6.50
6.50
-5.1
-5.1
3.03000
-11.57000