Re: rounding numbers up
From: Ryan Stewart (zzanNOtozz_at_gSPAMo.com)
Date: 02/26/04
- Next message: Tom N: "Re: rounding numbers up"
- Previous message: Chris Smith: "Re: Wildcards in <url-pattern>"
- Next in thread: Tom N: "Re: rounding numbers up"
- Reply: Tom N: "Re: rounding numbers up"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 25 Feb 2004 20:18:43 -0600
"trs1800" <nolo@coo.ca> wrote in message
news:I1b%b.1217$as.93@fe2.texas.rr.com...
> i tryed searching on this on google but i didnt find anything like i
> wanted, how do i round a number up, like 1.39 to 2?
>
> Thanks paul
I'm not aware of any standard methods that will do this for you. All you
have to do though is add 0.5 and then use Math.round(). Alternately, add 1
and use Math.floor(), cutting out the middleman as Math.round() adds 0.5 and
calls Math.floor().
- Next message: Tom N: "Re: rounding numbers up"
- Previous message: Chris Smith: "Re: Wildcards in <url-pattern>"
- Next in thread: Tom N: "Re: rounding numbers up"
- Reply: Tom N: "Re: rounding numbers up"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|