Re: Integer question

From: Date: Thu, 22 Mar 2007 18:23:25 +0000
Subject: Re: Integer question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-251113@lists.php.net to get a copy of this message
On 3/22/07, Matt Carlson <saryon@swbell.net> wrote:
When dealing with large numbers inside of php, I know at the int limit, a variable is recast into float. 1). How do you return the true number of the float when it reaches the upper limits of mysql's bigint (9223372036854775807). 2). How do you handle numbers that large, while maintaining precision. 3). Is there a php equivalent of unsigned? Thanks all
Hmm, better have a look at the gmp functions : www.php.net/gmp if you don't have the gmp math library installed, you might want to look at the worses alternative bcmath, which is automatically build into php: www.php.net/bc Tijnema
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#251113) next »