Cross platform/compiler consistent sprintf of floating point numbers
You can switch to LuaJIT. It formats numbers consistently between platforms. From the extensions page: tostring() etc. canonicalize NaN and ±Inf All number-to-string conversions consistently convert non-finite numbers to the same strings on all platforms. NaN results in “nan”, positive infinity results in “inf” and negative infinity results in “-inf”. tonumber() etc. use builtin string … Read more