PHP: Convert negative number to positive?

§cott™

New member
Is there a pre-existing functions?
Would multiplying the negative number by -1 work for every neg. number?
wats better? abs($negNumber) or ($negNumber*-1)
 
yeh execpt it would turn out postive. because everyone knows that a neg. times a neg. is a pos. and a neg times a pos. is neg.
 
Back
Top