Pelokalan
Python ID
id en
Masuk
Proyek
c-api__conversion.po Berkas proyek · python-docs-id-3.14 · Bahasa Indonesia
Modul PO Hanya lihat
Teks sumber — English
Terjemahan — Bahasa Indonesia
Functions for number conversion and formatted string output.
Fungsi-fungsi untuk konversi angka dan output string yang diformat
The following functions provide locale-independent string to number conversions.
If ``endptr`` is ``NULL``, convert the whole string. Raise :exc:`ValueError` and return ``-1.0`` if the string is not a valid representation of a floating-point number.
If endptr is not ``NULL``, convert as much of the string as possible and set ``*endptr`` to point to the first unconverted character. If no initial segment of the string is the valid representation of a floating-point number, set ``*endptr`` to point to the beginning of the string, raise ValueError, and return ``-1.0``.
finite number
infinite number
not a number