Re: Rounding decimals to interger
- From: Franck <the_darkblast@xxxxxxxxxxx>
- Date: Tue, 16 Oct 2007 08:53:27 -0700
On Oct 16, 11:29 am, "Christof Nordiek" <c...@xxxxxxxxx> wrote:
"Franck" <the_darkbl...@xxxxxxxxxxx> schrieb im Newsbeitragnews:1192548051.260816.284380@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
i would like to know how can i round to next greater than integer if
not integer already
what i mean is:
5.00000000000000000000000001 rounded to 6
5.1 rounded to 6
5.7 rounded to 6
6.0 rounded to 6
5.0 rounded to 5
as long as the value have something in decimal round it to the nearest
integer greater than
use Math.Ceiling
Christof
Works. i was trying whit split and everything :P but the problem was
depending on country the decimal symbol can be a dot or a comma. that
ceilling simplyfied my life there
.
- References:
- Rounding decimals to interger
- From: Franck
- Re: Rounding decimals to interger
- From: Christof Nordiek
- Rounding decimals to interger
- Prev by Date: Re: Setup project - stop a service?
- Next by Date: Re: regular expression - matching a string
- Previous by thread: Re: Rounding decimals to interger
- Next by thread: Re: Rounding decimals to interger
- Index(es):