Skip to content

Commit 9124afb

Browse files
committed
+ changes from #140989
1 parent 14f9f5c commit 9124afb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/c-api/float.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ number of bytes in the bytes string.
194194
195195
The 2-byte format is the IEEE 754 binary16 half-precision format, the 4-byte
196196
format is the IEEE 754 binary32 single precision format, and the 8-byte format
197-
is the IEEE 754 binary64 double precision format, although the NaNs type may
198-
not be preserved on some platforms while unpacking (signaling NaN become quiet
199-
NaN), for example on x86 systems in 32-bit mode.
197+
is the IEEE 754 binary64 double precision format, although the NaN type may
198+
not be preserved on some platforms while unpacking (signaling NaNs become quiet
199+
NaNs), for example on x86 systems in 32-bit mode.
200200
201201
It's assumed, that the :c:expr:`double` type has the IEEE 754 binary64 double
202202
precision format. What happens if it's not true is partly accidental (alas).
@@ -215,8 +215,8 @@ Pack functions
215215
216216
The pack routines write 2, 4 or 8 bytes, starting at *p*. *le* is an
217217
:c:expr:`int` argument, non-zero if you want the bytes string in little-endian
218-
format (exponent last, at ``p+1``, ``p+3``, or ``p+6`` ``p+7``), zero if you
219-
want big-endian format (exponent first, at *p*). The :c:macro:`PY_LITTLE_ENDIAN`
218+
format (exponent last, at ``p+1``, ``p+3``, or ``p+6`` and ``p+7``), zero if you
219+
want big-endian format (exponent first, at *p*). The :c:macro:`!PY_LITTLE_ENDIAN`
220220
constant can be used to use the native endian: it is equal to ``0`` on big
221221
endian processor, or ``1`` on little endian processor.
222222
@@ -245,7 +245,7 @@ Unpack functions
245245
The unpack routines read 2, 4 or 8 bytes, starting at *p*. *le* is an
246246
:c:expr:`int` argument, non-zero if the bytes string is in little-endian format
247247
(exponent last, at ``p+1``, ``p+3`` or ``p+6`` and ``p+7``), zero if big-endian
248-
(exponent first, at *p*). The :c:macro:`PY_LITTLE_ENDIAN` constant can be used to
248+
(exponent first, at *p*). The :c:macro:`!PY_LITTLE_ENDIAN` constant can be used to
249249
use the native endian: it is equal to ``0`` on big endian processor, or ``1``
250250
on little endian processor.
251251

0 commit comments

Comments
 (0)