Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Have a look at the precedence table for Java: http://introcs.cs.princeton.edu/11precedence/

The cast has higher precedence than multiplication, so the scaling doesn't help at all, unless you use parenthesis to force the right order of evaluation.



Oh, wow! I didn't know that about Java. I see then why I got all the downvotes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: