From dee8eaa96710125a171136ab990a46012a0081ab Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 24 Sep 2007 12:52:09 -0700 Subject: [PATCH] nasmdoc: clarify __float*__ example --- doc/nasmdoc.src | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src index ba5d9cb..cdcb6b9 100644 --- a/doc/nasmdoc.src +++ b/doc/nasmdoc.src @@ -1432,7 +1432,9 @@ For example: \c mov rax,__float64__(3.141592653589793238462) ... would assign the binary representation of pi as a 64-bit floating -point number into \c{RAX}. +point number into \c{RAX}. This is exactly equivalent to: + +\c mov rax,0x401921fb54442d18 NASM cannot do compile-time arithmetic on floating-point constants. This is because NASM is designed to be portable - although it always -- 2.7.4