Converting Decimal To Integer?

Try something like : Double d = 1899.99; Int32 I = Math. Round(d); String retval = i. ToString(CultureInfo.

InvariantCulture).

When using Math. Round You have two choices for rounding x.5: Banker's round / Round to even. Avoids biases, by sometimes rounding up(1.5=>2) and sometimes rounding down(0.5=>0), used by default if you don't specify the parameter.

Int32 i=Math. Round(d, MidpointRounding. ToEven); The rounding you learn at school, where it always rounds towards infinity (0.5=>1, -0.5=>-1) Int32 i=Math.

Round(d, MidpointRounding. AwayFromZero).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions