lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 07/08/2013 11.36, 徐晖 wrote:
> Hi guys,
> Why the NNMARK is define to 0x7FF7A500? I have read the ieee 754-2008
> std, the std just say that NaN's are represented by a bit pattern with
> an exponent of all 1s and a non-zero mantissa. 0x7FF7A500 in binary
> format is 0(sign bit) 11111111111(exponent of all 1s) 0(snan) 111 1010
> 0101(why?) 0000 0000. Can anyone answer my question? thanks.
> 

This page has a nice IEEE-754 FP analyzer that may be useful [1].

According to [1] the bit pattern 0x7ff7a500 is a perfectly regular
*quiet* NaN.

BTW, your question was not very clear, indeed.

Cheers.

-- Lorenzo




[1] http://babbage.cs.qc.cuny.edu/IEEE-754/index.xhtml

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments