View Single Post
  #9  
Old 05-08-2008, 04:44 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Quote:
Originally Posted by DustyPorViva View Post
PHP Code:
function ceil(number) {
  return 
int(number) < number number number;

Shouldn't that be:
PHP Code:
return int(number) < number number number
You are correct sir! I saw it just now.

Just for that, you get this special version of atan2 as your prize!
PHP Code:
function atan2(y,x) {
  return 
x<>0?x>0?atan(y/x):atan(y/x)-radian(180):y>0?radian(90):radian(-90);

That's right. They're nested.
__________________

Reply With Quote