mirror of
https://github.com/python/cpython.git
synced 2025-08-25 03:04:55 +00:00
[3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012)
(cherry picked from commit 1a0c7b9ba4
)
This commit is contained in:
parent
225cbee8d8
commit
a45d9051ed
100 changed files with 238 additions and 238 deletions
|
@ -1633,12 +1633,12 @@ float.__new__ as float_new
|
|||
x: object(c_default="NULL") = 0
|
||||
/
|
||||
|
||||
Convert a string or number to a floating point number, if possible.
|
||||
Convert a string or number to a floating-point number, if possible.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
float_new_impl(PyTypeObject *type, PyObject *x)
|
||||
/*[clinic end generated code: output=ccf1e8dc460ba6ba input=f43661b7de03e9d8]*/
|
||||
/*[clinic end generated code: output=ccf1e8dc460ba6ba input=55909f888aa0c8a6]*/
|
||||
{
|
||||
if (type != &PyFloat_Type) {
|
||||
if (x == NULL) {
|
||||
|
@ -1734,13 +1734,13 @@ You probably don't want to use this function.
|
|||
It exists mainly to be used in Python's test suite.
|
||||
|
||||
This function returns whichever of 'unknown', 'IEEE, big-endian' or 'IEEE,
|
||||
little-endian' best describes the format of floating point numbers used by the
|
||||
little-endian' best describes the format of floating-point numbers used by the
|
||||
C type named by typestr.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
float___getformat___impl(PyTypeObject *type, const char *typestr)
|
||||
/*[clinic end generated code: output=2bfb987228cc9628 input=d5a52600f835ad67]*/
|
||||
/*[clinic end generated code: output=2bfb987228cc9628 input=90d5e246409a246e]*/
|
||||
{
|
||||
float_format_type r;
|
||||
|
||||
|
@ -1926,7 +1926,7 @@ _init_global_state(void)
|
|||
float_format_type detected_double_format, detected_float_format;
|
||||
|
||||
/* We attempt to determine if this machine is using IEEE
|
||||
floating point formats by peering at the bits of some
|
||||
floating-point formats by peering at the bits of some
|
||||
carefully chosen values. If it looks like we are on an
|
||||
IEEE platform, the float packing/unpacking routines can
|
||||
just copy bits, if not they resort to arithmetic & shifts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue