View Single Post
Scone
Senior Member
Join Date: Apr 2010
Location: England
Old 04-07-2010 , 14:04   Re: String to number
Reply With Quote #10

Your best bet is to fetch an int from the database instead of a string.

If you did want to perform math functions on a string in future, you'd need to convert the string to an int, do whatever you needed to do, then convert back. Obviously this method is slow, and you're better off using an int from the start!
Scone is offline