View Single Post
  #6  
Old 09-08-2011, 11:15 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by scriptless View Post
I never knew about
PHP Code:
max(ab) - returns the higher number
It also works well together with min() to "lock" a number to a certain range:
PHP Code:
max(0min(100temp.var)) 
Will return temp.var, 0 if it's below 0 and 100 if it's above 100.
Reply With Quote