/    Sign up×
Community /Pin to ProfileBookmark

Is there a way to get an integer to be larger than 2147483647?

I am using a product id for my parts that I would like to be 11 characters in length but anything input over 2147483647 results in 2147483647. I’ve researched that this is the max number for an integer on a 32 bit server but I was wondering if it’s possible to do without changing to something other than an integer? I’ve seen it done with a float but I do need the value to be an integer or I end up getting errors… Do I need to look into hosting my site on a 64 bit server?

Thanks in advance,
Matt

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@aj_nscNov 08.2011 — How are you using it? and why are you requiring it to be an integer? Could you skirt the problem by using it as a string? Sample code, or something similar, would be helpful.

Also, what's the reason it has to be so big?
×

Success!

Help @cre8tivemedia spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...