Why does (int)(33.46639 * 1000000) return 33466389?

Posted by jfar on Stack Overflow See other posts from Stack Overflow or by jfar
Published on 2010-03-11T01:52:17Z Indexed on 2010/04/04 0:33 UTC
Read the original article Hit count: 591

(int)(33.46639 * 1000000) returns 33466389

Why does this happen?

© Stack Overflow or respective owner

Related posts about c#

Related posts about floating-point