mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
Fix #78238: BCMath returns "-0"
There is no negative zero in the decimal system, so we must suppress the sign. Closes GH-7250.
This commit is contained in:
parent
8f97f82e35
commit
bcb89c75ec
5 changed files with 32 additions and 3 deletions
|
@ -120,6 +120,8 @@ _PROTOTYPE(int bc_compare, (bc_num n1, bc_num n2));
|
|||
|
||||
_PROTOTYPE(char bc_is_zero, (bc_num num));
|
||||
|
||||
_PROTOTYPE(char bc_is_zero_for_scale, (bc_num num, int scale));
|
||||
|
||||
_PROTOTYPE(char bc_is_near_zero, (bc_num num, int scale));
|
||||
|
||||
_PROTOTYPE(char bc_is_neg, (bc_num num));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue