A
Armin Zingler
Hi,
is there a function in the Framework that cuts the places
after the decimal point of a Double and converts to an Integer
_without_ performing any rounding (as Convert.ToInt32 does)?
I mean, what the IL code "conv.i4" does? ATM I'm using a function
that exactly does what I need in a C++ helper library:
static int ToInt32(double value)
{
return int(value);
};
But I want to get rid of it because a whole library for this
function is oversized and because this simple function should be
in the Framework, shouldn't it?
is there a function in the Framework that cuts the places
after the decimal point of a Double and converts to an Integer
_without_ performing any rounding (as Convert.ToInt32 does)?
I mean, what the IL code "conv.i4" does? ATM I'm using a function
that exactly does what I need in a C++ helper library:
static int ToInt32(double value)
{
return int(value);
};
But I want to get rid of it because a whole library for this
function is oversized and because this simple function should be
in the Framework, shouldn't it?