79164732

Date: 2024-11-07 01:10:49
Score: 2
Natty:
Report link

C sharp divides integers like a child. Throwing away any leftover fractional part. Simply cast the denominator as a double or a float and it will work the way you expect. When you divide by a constant integer remember to put a .0 after the integer to make it a double.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Harry Smith