xref: /php-src/ext/bcmath/tests/bcscale.phpt (revision 56f90492)
1--TEST--
2bcscale() function
3--EXTENSIONS--
4bcmath
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