Prasanth R

Prasanth R

  • NA
  • 24
  • 45.9k

regarding datatypes

Oct 31 2013 9:52 AM
int d =39/2;
decimal l=(decimal)d;
Console.Writeline(l);

The output is 19.5

i used double it shows 20(rounding off)

what should i do now to get output as 19 from 19.5

Answers (2)