By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,087 Members | 1,508 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,087 IT Pros & Developers. It's quick & easy.

Math.round in the computing of middle screen is necessary

P: n/a
den

if I want to open a popup at middle of screen in some example I see
that is used also Math.round;
is obligatory?
there are situation where the result of screen/2 if isnąt an integer can to
cause prolems?
Mar 5 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
den said the following on 3/5/2007 1:43 PM:
if I want to open a popup at middle of screen in some example I see
that is used also Math.round;
is obligatory?
there are situation where the result of screen/2 if isn’t an integer can to
cause prolems?
Why take the chance if using Math.round() can prevent any potential problem?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 5 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.