xref: /PHP-8.3/ext/bcmath/tests/bug46781.phpt (revision 56f90492)
1--TEST--
2Bug #46781 (BC math handles minus zero incorrectly)
3--EXTENSIONS--
4bcmath
5--FILE--
6<?php
7var_dump(bcadd('-0.0', '-0.0', 1));
8var_dump(bccomp('-0.0', '0', 1));
9?>
10--EXPECT--
11string(3) "0.0"
12int(0)
13