Re: Rounding decimals to interger

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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

.