xref: /PHP-8.0/ext/bcmath/tests/bug46781.phpt (revision a555cc0b)
1--TEST--
2Bug #46781 (BC math handles minus zero incorrectly)
3--SKIPIF--
4<?php
5if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
6?>
7--FILE--
8<?php
9var_dump(bcadd('-0.0', '-0.0', 1));
10var_dump(bccomp('-0.0', '0', 1));
11?>
12--EXPECT--
13string(3) "0.0"
14int(0)
15