Hack to convert floats to a canonical format, workaround for #103