|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-13 10:20 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 05:00:01 2025 UTC |
Description: ------------ printf ("%2.0f", -0.5) gives answer -1, instead of zero gcc gives 0 wich is correct in various versions 5, 4 same problem Reproduce code: --------------- <?php printf ("%4.0f\n", -0.5); ?> Expected result: ---------------- 0 Actual result: -------------- -1