why is a float divided by a larger float yields zero and how to avoid this in c#.net?

Posted by Jronny on Stack Overflow See other posts from Stack Overflow or by Jronny
Published on 2010-03-31T07:59:13Z Indexed on 2010/03/31 8:03 UTC
Read the original article Hit count: 525

Filed under:
|
|
|

I was trying to divide (float)200 / (float)500 but the result is 0.0. Why is this so and how can we have 0.4 as the result? Thanks a lot.

© Stack Overflow or respective owner

Related posts about c#

Related posts about net