summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-08 16:39:28 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-08 16:39:28 -0700
commit062ee976c48ef1d77f621a7d3f5ac698c48b08a4 (patch)
tree5d81d4d6af3982547b6559483ab17a031131e22c
parent27bdec9295bdf370588d40c04762e1956e5491ea (diff)
downloadnasm-062ee976c48ef1d77f621a7d3f5ac698c48b08a4.tar.gz
doc: A few floating-point examples
-rw-r--r--doc/nasmdoc.src4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src
index bb80a0f2..6c759c3a 100644
--- 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