diff options
Diffstat (limited to 'ext/bcmath/tests/bcmul.phpt')
-rw-r--r-- | ext/bcmath/tests/bcmul.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/bcmath/tests/bcmul.phpt b/ext/bcmath/tests/bcmul.phpt new file mode 100644 index 0000000..0ff322f --- /dev/null +++ b/ext/bcmath/tests/bcmul.phpt @@ -0,0 +1,18 @@ +--TEST-- +bcmul() function +--SKIPIF-- +<?php if(!extension_loaded("bcmath")) print "skip"; ?> +--INI-- +bcmath.scale=0 +--FILE-- +<?php +echo bcmul("1", "2"),"\n"; +echo bcmul("-3", "5"),"\n"; +echo bcmul("1234567890", "9876543210"),"\n"; +echo bcmul("2.5", "1.5", 2),"\n"; +?> +--EXPECT-- +2 +-15 +12193263111263526900 +3.75 |