xref: /PHP-7.3/ext/bcmath/tests/bcsub.phpt (revision 06087614)
1--TEST--
2bcsub() function
3--SKIPIF--
4<?php if(!extension_loaded("bcmath")) print "skip"; ?>
5--INI--
6bcmath.scale=0
7--FILE--
8<?php
9echo bcsub("1", "2"),"\n";
10echo bcsub("-1", "5", 4),"\n";
11echo bcsub("1.555", "2.555", 2),"\n";
12echo bcsub("8728932001983192837219398127471", "1928372132132819737213", 2),"\n";
13?>
14--EXPECT--
15-1
16-6.0000
17-1.00
188728932000054820705086578390258.00
19