stripping negative number

From: Date: Thu, 23 Dec 2004 08:18:12 +0000
Subject: stripping negative number
Groups: php.general 
Request: Send a blank email to php-general+get-205046@lists.php.net to get a copy of this message
I want to convert negative number to its positive equivalent. $num = -40; printf("Unsigned value is %u", $num); output is: Unsigned value is 4294967256 I have checked the manpages and %u seems the right format. Pls advise. -- roger --------------------------------------------------- Sign Up for free Email at http://ureg.home.net.my/ ---------------------------------------------------

« previous php.general (#205046) next »