xref: /PHP-8.2/ext/bcmath/tests/bcadd.phpt (revision f2b50156)
1--TEST--
2bcadd() function
3--EXTENSIONS--
4bcmath
5--INI--
6bcmath.scale=0
7--FILE--
8<?php
9echo bcadd("1", "2"),"\n";
10echo bcadd("-1", "5", 4),"\n";
11echo bcadd("-1", "-5", 4),"\n";
12echo bcadd("1", "-5", 4),"\n";
13echo bcadd("1928372132132819737213", "8728932001983192837219398127471", 2),"\n";
14?>
15--EXPECT--
163
174.0000
18-6.0000
19-4.0000
208728932003911564969352217864684.00
21