Handle precision and input style for floats.