handle floating point numbers in scales