projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27bdec9
)
doc: A few floating-point examples
author
H. Peter Anvin
<hpa@zytor.com>
Sun, 8 Jun 2008 23:39:28 +0000
(16:39 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Sun, 8 Jun 2008 23:39:28 +0000
(16:39 -0700)
doc/nasmdoc.src
patch
|
blob
|
history
diff --git
a/doc/nasmdoc.src
b/doc/nasmdoc.src
index
bb80a0f
..
6c759c3
100644
(file)
--- a/
doc/nasmdoc.src
+++ b/
doc/nasmdoc.src
@@
-1503,8
+1503,10
@@
Some examples:
\c db -0.2 ; "Quarter precision"
\c dw -0.5 ; IEEE 754r/SSE5 half precision
\c dd 1.2 ; an easy one
+\c dd 1.222_222_222 ; underscores are permitted
\c dd 0x1p+2 ; 1.0x2^2 = 4.0
-\c dq 1.e10 ; 10,000,000,000
+\c dq 0x1p+32 ; 1.0x2^32 = 4 294 967 296.0
+\c dq 1.e10 ; 10 000 000 000.0
\c dq 1.e+10 ; synonymous with 1.e10
\c dq 1.e-10 ; 0.000 000 000 1
\c dt 3.141592653589793238462 ; pi