> The Lua 5.2 change document makes a suggestion that Lua 5.2 has "support for hexadecimal floats." > > local ok, v = pcall(string.format," --[[ 0x%x ]]",5.5) Try %a instead of 0x%x. Try also a=0x1.6p+2 ; print(a)