|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-01 01:15 UTC] kalle@php.net
[2009-03-09 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 22:00:01 2025 UTC |
Description: ------------ why round() return illegal result? Reproduce code: --------------- while($row = odbc_fetch_array($q)){ extract($row); print_r($row); var_dump($ISHSALDO); echo round($ISHSALDO, 2); echo "\n"; } Expected result: ---------------- Array ( [NAM] => [GOR] => [V_KUL] => ? [ULL] => [DOM] => [IDM] => [KVR] => [DOG] => 1998 [ISHSALDO] => 290.000 [NACH] => 295.000 [OPLATA] => 290.000 [TEL] => 0000000 ) string(7) "290.000" 290 Actual result: -------------- Array ( [NAM] => [GOR] => [V_KUL] => ? [ULL] => [DOM] => [IDM] => [KVR] => [DOG] => 1998 [ISHSALDO] => 290.000 [NACH] => 295.000 [OPLATA] => 290.000 [TEL] => 0000000 ) string(7) "290.000" 28: