tidy up float conversion functions