xref: /PHP-7.4/ext/bcmath/tests/bcscale.phpt (revision b02dd10e)
1--TEST--
2bcscale() 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";
10bcscale(2);
11echo bcadd("1", "2"),"\n";
12bcscale(10);
13echo bcadd("1", "2"),"\n";
14bcscale(0);
15echo bcadd("1", "2"),"\n";
16?>
17--EXPECT--
183
193.00
203.0000000000
213
22