Ruslan,
Have you tried System.Math.Ceiling? Which returns the smallest whole number
greater than or equal to the specified number.
Note for negative numbers it will return numbers closer to zero.
Ceiling(-3.6) will return -3.
The function System.Match.Floor will return the smallest whole number less
than or equal to the specified number.
Hope this helps
Jay
"Ruslan" <ru*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
How can I round up a float number?
For example:
If I have a number 3.6 I want to obtain 4 and
If I have a number 3.1 also to obtain 4
Thanks a lot.
Ruslan