About 749 results
Open links in new tab
  1. decimal — Decimal fixed-point and floating-point arithmetic — …

    2 days ago · Source code: Lib/decimal.py The decimal module provides support for fast correctly rounded decimal floating-point arithmetic. It offers several advantages over the float datatype: …

  2. 15. Floating-Point Arithmetic: Issues and Limitations - Python

    3 days ago · For use cases which require exact decimal representation, try using the decimal module which implements decimal arithmetic suitable for accounting applications and high …

  3. fractions — Rational numbers — Python 3.13.3 documentation

    3 days ago · From Python 3.2 onwards, you can also construct a Fraction instance directly from a decimal.Decimal instance. limit_denominator ( max_denominator = 1000000 ) ¶ Finds and …

  4. Numeric and Mathematical Modules — Python 3.13.3 …

    3 days ago · The decimal module supports exact representations of decimal numbers, using arbitrary precision arithmetic. The following modules are documented in this chapter: numbers …

  5. Built-in Types — Python 3.13.3 documentation

    2 days ago · Return True if all characters in the string are decimal characters and there is at least one character, False otherwise. Decimal characters are those that can be used to form …

  6. What’s New in Python 2.4 — Python 3.13.3 documentation

    Mar 30, 2005 · A description of a decimal-based representation. This representation is being proposed as a standard, and underlies the new Python decimal type. Much of this material …

  7. colorsys — Conversions between color systems — Python 3.13.3 …

    3 days ago · The colorsys module defines bidirectional conversions of color values between colors expressed in the RGB (Red Green Blue) color space used in computer monitors and …

  8. time — Time access and conversions — Python 3.13.3 …

    Time zone offset indicating a positive or negative time difference from UTC/GMT of the form +HHMM or -HHMM, where H represents decimal hour digits and M represents decimal minute …

  9. locale — Internationalization services — Python 3.13.3 …

    1 day ago · Formats a floating-point number using the same format as the built-in function str(float), but takes the decimal point into account. locale. delocalize ( string ) ¶ Converts a …

  10. json — JSON encoder and decoder — Python 3.13.3 documentation

    2 days ago · This can be used to parse JSON floats into custom datatypes, for example decimal.Decimal. parse_int (callable | None) – If set, a function that is called with the string of …

Refresh