What’s wrong with this division? [closed]

3/8 performs an integer division and the result is 0

double result = ((3.0/8)*100);

should do it.

By the way, if you do ((3.0/8)*100).ToString() you get a String and not a double.

Leave a Comment