On 16 December 2003 11:13, Scott McDaid wrote:
> Hi there. I've been looking at the behaviour of the round
> functionality in PHP. We're currently still using v4.2.3, (but the
> documentation seems to
> suggest it's the same for versions after this).
>
> Doing the following rounds always rounds *
On Tue, Dec 16, 2003 at 11:13:25AM +, Scott McDaid wrote:
:
: Hi there. I've been looking at the behaviour of the round functionality in
: PHP. We're currently still using v4.2.3, (but the documentation seems to
: suggest it's the same for versions after this).
:
: Doing the following round
Hi there. I've been looking at the behaviour of the round functionality in
PHP. We're currently still using v4.2.3, (but the documentation seems to
suggest it's the same for versions after this).
Doing the following rounds always rounds *up* to the nearest whole number.
i.e.
0.5 => 1
1.5 => 2
3 matches
Mail list logo