On Fri, 3 Oct 2003 15:51:59 +1000, you wrote:
>Im trying to retrieve the unsigned value of an integer. sounds pretty simple...
>
>[code]
>$i = -86;
>echo "" . sprintf("%d", $i);
>echo "" . sprintf("%u", $i);
>[/code]
>
>produces:
>-86
>4294967198
>
>what i expected:
>-86
>86
>
>Ive searched the ar
* Thus wrote Cody Phanekham ([EMAIL PROTECTED]):
> Im trying to retrieve the unsigned value of an integer. sounds pretty simple...
>
> [code]
> $i = -86;
> echo "" . sprintf("%d", $i);
> echo "" . sprintf("%u", $i);
> [/code]
>
> produces:
> -86
> 4294967198
>
> what i expected:
> -86
> 86
>
>
Hi,
Friday, October 3, 2003, 3:51:59 PM, you wrote:
CP> Im trying to retrieve the unsigned value of an integer. sounds pretty simple...
CP> [code]
CP> $i = -86;
CP> echo "" . sprintf("%d", $i);
CP> echo "" . sprintf("%u", $i);
CP> [/code]
CP> produces:
CP> -86
CP> 4294967198
CP> what i expected
3 matches
Mail list logo