C
ChrisM
Hi Guys,
I'm looking for a function that will return the lowest integer that is
greater than or equal to a decimal number.
eg.
3.1(decimal) returns 4(integer)
3.9(decimal) returns 4(integer)
4.0(decimal) returns 4(integer)
I guess I can do somthing with Math.Ceiling, but that seems to need a Double
as an input and returns a Double. Is there a neat way, or am I going to have
to cast my Decimal to a Double, then somehow convert the result to an
Integer by hand?
Thanks,
Chris.
I'm looking for a function that will return the lowest integer that is
greater than or equal to a decimal number.
eg.
3.1(decimal) returns 4(integer)
3.9(decimal) returns 4(integer)
4.0(decimal) returns 4(integer)
I guess I can do somthing with Math.Ceiling, but that seems to need a Double
as an input and returns a Double. Is there a neat way, or am I going to have
to cast my Decimal to a Double, then somehow convert the result to an
Integer by hand?
Thanks,
Chris.