You might want to look into a numeric type as well. They're exact. I.e. when you enter 1.5 into a float, it may or may not be exactly 1.5 (or whatever number) due to rounding errors. numeric types do not round and have a fixed maximum non-integer portion. They're generally used for accounting and such.