xref: /PHP-7.1/ext/bcmath/tests/bcadd.phpt (revision b02dd10e)
1--TEST--
2bcadd() function
3--SKIPIF--
4<?php if(!extension_loaded("bcmath")) print "skip"; ?>
5--INI--
6bcmath.scale=0
7--FILE--
8<?php
9echo bcadd("1", "2"),"\n";
10echo bcadd("-1", "5", 4),"\n";
11echo bcadd("1928372132132819737213", "8728932001983192837219398127471", 2),"\n";
12?>
13--EXPECT--
143
154.0000
168728932003911564969352217864684.00
17