[php-src] Issue #11834: floatval return negative zero

From: Date: Mon, 31 Jul 2023 14:56:57 +0000
Subject: [php-src] Issue #11834: floatval return negative zero
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245078@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11834 Author: RandUser123sa ### Description The following code: ```php <?php echo floatval(sprintf("%1.2f", -0.0002)); ``` Resulted in this output: ``` -0 ``` But I expected this output instead: ``` // Acording to https://en.wikipedia.org/wiki/Signed_zero should be 0 0 ``` ### PHP Version 8.1.21 ### Operating System Ubuntu 22.04

« previous php.bugs (#245078) next »