changed new way of converting floats to str; new range check cannot work