This is a discussion on Integer question within the PHP General forums, part of the PHP Programming Forums category; When dealing with large numbers inside of php, I know at the int limit, a variable is recast into float. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 > > |