Originally posted by Lucifix
varchar(255)
that's the problem. those values are simply strings, not numbers.
Originally posted by Lucifix
Should I use tinytin?
no, you should DECIMAL or NUMERIC, or one of the approximate numeric data types (FLOAT, REAL, and DOUBLE PRECISION) depending on how much decimal precesion you need. i'm assuming you are using mySQL? if so read up on mySQL Numeric Types.