note 82294 rejected from function.round by betz

From: Date: Fri, 04 Apr 2008 15:49:54 +0000
Subject: note 82294 rejected from function.round by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-137927@lists.php.net to get a copy of this message
Note Submitter: sbraaa at hotmail dot com ---- 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.

« previous php.notes (#137927) next »