aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-03-28 06:39:38 +0100
committerBjörn Gustavsson <[email protected]>2014-03-28 10:06:47 +0100
commite7a5051a43f9adcc564745c9c62f471fbdf253fb (patch)
treeb0d0297f4cd33361d9224f0f6520aadcb3d43a16 /lib/asn1
parentb8e71bffc15a1c0a668cabb7e52a90838cba027f (diff)
downloadotp-e7a5051a43f9adcc564745c9c62f471fbdf253fb.tar.gz
otp-e7a5051a43f9adcc564745c9c62f471fbdf253fb.tar.bz2
otp-e7a5051a43f9adcc564745c9c62f471fbdf253fb.zip
Correct description of the REAL type
REAL is implemented, sort of. But real numbers must be given in a string.
Diffstat (limited to 'lib/asn1')
-rw-r--r--lib/asn1/doc/src/asn1_ug.xml10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/asn1/doc/src/asn1_ug.xml b/lib/asn1/doc/src/asn1_ug.xml
index 497ea9bd2b..83de80e906 100644
--- a/lib/asn1/doc/src/asn1_ug.xml
+++ b/lib/asn1/doc/src/asn1_ug.xml
@@ -562,20 +562,18 @@ T6value3 = white
<section>
<marker id="REAL"></marker>
<title>REAL</title>
- <p>In this version reals are not implemented. When they are,
- the following
- ASN.1 type is used:</p>
+ <p>The following ASN.1 type is used for real numbers:</p>
<pre>
R1 ::= REAL
</pre>
- <p>Can be assigned a value in Erlang as:</p>
+ <p>It can be assigned a value in Erlang as:</p>
<pre>
-R1value1 = 2.14,
+R1value1 = "2.14",
R1value2 = {256,10,-2},
</pre>
<p>In the last line note that the tuple {256,10,-2} is the real number
2.56 in a special notation, which will encode faster than simply
- stating the number as 2.56. The arity three tuple is
+ stating the number as <c>"2.56"</c>. The arity three tuple is
<c>{Mantissa,Base,Exponent}</c> i.e. Mantissa * Base^Exponent.</p>
</section>