Re: string.format(""%x",5.5)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: string.format(""%x",5.5)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 1 Dec 2011 15:36:32 -0200
> 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)