[Phpwm] unsigning a numeric variable

Jake Stride jake.stride at senokian.com
Thu May 4 22:31:28 BST 2006


Phil Beynon wrote:
> Is there a quicker functional way to unsign a numeric variable, apart from
> squaring it then taking the square root of the resultant?
>
> $startingval = -99999999;
> echo $startingval . "<br>";
> echo sqrt($startingval * $startingval);
>
>
>   
Is this what you are looking for:

http://uk.php.net/manual/en/function.abs.php

or have I missed the point?

Thanks

Jake
>
>
> _______________________________________________
> Phpwm mailing list
> Phpwm at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/phpwm
>   




More information about the Phpwm mailing list