From 674379e1f09748cbd497ba381ab8ddd6581effa6 Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Wed, 27 Feb 2019 13:18:06 +0100 Subject: Clarify in the docs that (NEW_)FLOAT_EXT must be finite --- erts/doc/src/erl_ext_dist.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'erts/doc/src/erl_ext_dist.xml') diff --git a/erts/doc/src/erl_ext_dist.xml b/erts/doc/src/erl_ext_dist.xml index ca55c6233c..4721747097 100644 --- a/erts/doc/src/erl_ext_dist.xml +++ b/erts/doc/src/erl_ext_dist.xml @@ -367,8 +367,9 @@ FLOAT_EXT

- A float is stored in string format. The format used in sprintf to - format the float is "%.20e" + A finite float (i.e. not inf, -inf or NaN) is stored in + string format. The format used in sprintf to format the + float is "%.20e" (there are more bytes allocated than necessary). To unpack the float, use sscanf with format "%lf".

@@ -983,7 +984,8 @@ NEW_FLOAT_EXT

- A float is stored as 8 bytes in big-endian IEEE format. + A finite float (i.e. not inf, -inf or NaN) is stored as 8 bytes + in big-endian IEEE format.

This term is used in minor version 1 of the external format. -- cgit v1.2.3