[Phpwm] unsigning a numeric variable
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:
> or have I missed the point?
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!
More information about the Phpwm