[Phpwm] unsigning a numeric variable
Phil Beynon
phil at infolinkelectronics.co.uk
Thu May 4 22:46:35 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
Cheers Jake.
Thats the one, I thought it was in there somewhere!
Been one of those long and technical days today and couldn't see the wood
for the trees there for a moment!
Regards,
Phil
More information about the Phpwm
mailing list