Simple maths in Objective-C producing unexpected results

Posted by alistair.mp on Stack Overflow See other posts from Stack Overflow or by alistair.mp
Published on 2010-04-04T14:50:36Z Indexed on 2010/04/04 14:53 UTC
Read the original article Hit count: 411

Filed under:
|

I'm doing the following in Objective-C and expecting 180 as the output but I'm getting 150. Can anyone explain what I'm doing wrong?

(360 / 100) * 50

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about math