Raised This Month: $ Target: $400
 0% 

How to define a large integer?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 11-02-2011 , 10:47   Re: How to define a large integer?
Reply With Quote #5

You could store bytes separately and let mysql convert it to a single number or you could store numbers in a string and implement your own * and + operators working on strings, but to me it kinda looks like XY problem: your real goal is probably not to convert ip to unsigned int, but to do something with ip ranges, so why don't you explain what do you want to do with those ips and we will see if there is better solution.
__________________
Impossible is Nothing
Sylwester is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode