xref: /php-src/ext/bcmath/tests/bug78238.phpt (revision d66854be)
1--TEST--
2Bug #78238 (BCMath returns "-0")
3--EXTENSIONS--
4bcmath
5--FILE--
6<?php
7var_dump(bcadd("0", "-0.1"));
8
9$a = bcmul("0.9", "-0.1", 1);
10$b = bcmul("0.90", "-0.1", 1);
11var_dump($a, $b);
12?>
13--EXPECT--
14string(1) "0"
15string(3) "0.0"
16string(3) "0.0"
17