PDA

View Full Version : Simple cuestion: I want -1 to be 1


wert
05-22-2003, 06:57 PM
is there a function that returns the absolute value of a number I mean something like :
$My_Number = -10;
$My _PositiveNumber = Function_I_M_Loking($My_Number);
//that prints out 10
echo($My _PositiveNumber);

Ökii
05-22-2003, 06:58 PM
abs()

woot woot - that would have been my shortest ever reply had I not spoiled it by adding this silly comment.

wert
05-22-2003, 07:01 PM
thnx, I sayed it was a simple cuestion. jeje