Divide not returning the decimal value i expect.

Posted by gtas on Stack Overflow See other posts from Stack Overflow or by gtas
Published on 2010-04-08T01:36:46Z Indexed on 2010/04/08 1:43 UTC
Read the original article Hit count: 333

Filed under:
|

if you divide 2 / 3 should return 0,66666666666666667 instead i get in double value type 0.0 in decimal 0.

My purpose is to divide even (e.g. 2 / 3) and round to 1 always to the nearest.

Any Help?

© Stack Overflow or respective owner

Related posts about c#

Related posts about math