note 22375 modified in function.round by torben

From: Date: Sat, 15 Jun 2002 23:00:58 +0000
Subject: note 22375 modified in function.round by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-31905@lists.php.net to get a copy of this message
Seems there's a bug in php 4.1.2's round() as: echo round(12.555, 2); produces "12.55" not "12.56" as expected. echo round(12.556, 2); works fine (and gives "12.56") --was-- Seems there's a bug in php 4.1.2's round() as: echo round(12.555, 2); produces "12.55" not "12.56" as expected. echo round(12.556, 2); works fine (and gives "12.56") http://www.php.net/manual/en/function.round.php

« previous php.notes (#31905) next »