note 82294 added to function.round

From: Date: Fri, 04 Apr 2008 13:40:35 +0000
Subject: note 82294 added to function.round
Groups: php.notes 
Request: Send a blank email to php-notes+get-137925@lists.php.net to get a copy of this message
I'm not agree with the lasts answers! I know that it is hard to correctly represent a floating point number due to the binary calculation problems but I've seen some situation where the issue is managed in the right way. For example, I usuallly develop web application using PostgreSQL as database and I see that if I do the same operation using the PostgreSQL's internal round function I obtain the right rounding using the same input... so what's the matter? I think that the PHP's round function could be improved and fixed by PHP developers ad that this should be done as soon as possible 'cause this issue could be very dangerous if the application deal with monetary values. ---- Server IP: 80.241.173.254 Probable Submitter: 212.103.209.197 ---- Manual Page -- http://www.php.net/manual/en/function.round.php Edit -- https://master.php.net/note/edit/82294 Del: integrated -- https://master.php.net/note/delete/82294/integrated Del: useless -- https://master.php.net/note/delete/82294/useless Del: bad code -- https://master.php.net/note/delete/82294/bad+code Del: spam -- https://master.php.net/note/delete/82294/spam Del: non-english -- https://master.php.net/note/delete/82294/non-english Del: in docs -- https://master.php.net/note/delete/82294/in+docs Del: other reasons-- https://master.php.net/note/delete/82294 Reject -- https://master.php.net/note/reject/82294 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137925) next »