Minimize conversions to float to avoid possible loss of data