mirror of
https://github.com/php/php-src.git
synced 2026-04-19 22:11:12 +02:00
For rationale, see https://github.com/php/php-src/pull/6787 Extensions migrated in this part: * bcmath * bz2 * calendar * com_dotnet * ctype Closes GH-6797.
17 lines
228 B
PHP
17 lines
228 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", "-7.3", "1")."\n";
|
|
echo bcadd("-4.27", "7.3");
|
|
?>
|
|
--EXPECT--
|
|
6.50
|
|
-5.1
|
|
3.03000
|