diff options
Diffstat (limited to 'ext/bcmath/tests/bcscale.phpt')
-rw-r--r-- | ext/bcmath/tests/bcscale.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/bcmath/tests/bcscale.phpt b/ext/bcmath/tests/bcscale.phpt new file mode 100644 index 0000000..4fc2f85 --- /dev/null +++ b/ext/bcmath/tests/bcscale.phpt @@ -0,0 +1,21 @@ +--TEST-- +bcscale() function +--SKIPIF-- +<?php if(!extension_loaded("bcmath")) print "skip"; ?> +--INI-- +bcmath.scale=0 +--FILE-- +<?php +echo bcadd("1", "2"),"\n"; +bcscale(2); +echo bcadd("1", "2"),"\n"; +bcscale(10); +echo bcadd("1", "2"),"\n"; +bcscale(0); +echo bcadd("1", "2"),"\n"; +?> +--EXPECT-- +3 +3.00 +3.0000000000 +3 |