Sunday, July 17, 2011

Is multiply or divide more expensive?

Which is more efficient when programing? For instance, i wanted to half a value, do I val * 0.5 or val / 2 for better performance?

No comments:

Post a Comment