Decimal

Decimal number for fast correctly rounded decimal floating point arithmetic.

Methods

  • __init__(self, default : Number) -> None

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      default
      Type
      Number
      Default
      Description

  • __set_name__(self, owner : type[object], name : str) -> None

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      owner
      Type
      type[object]
      Default
      Description

    • Name
      name
      Type
      str
      Default
      Description

  • __get__(self, instance : typing.Optional[object], owner : typing.Optional[type[object]]) -> decimal.Decimal

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      instance
      Type
      typing.Optional[object]
      Default
      Description

    • Name
      owner
      Type
      typing.Optional[type[object]]
      Default
      Description

    Response

    Type
    decimal.Decimal
    Description

  • __set__(self, instance : typing.Optional[object], value : Number) -> None

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      instance
      Type
      typing.Optional[object]
      Default
      Description

    • Name
      value
      Type
      Number
      Default
      Description

Attributes

  • Name
    _default_value
    Type
    Value

    = default

    Description

  • Name
    _attr_name
    Type
    Value

    = ''

    Description

Copyright © 2024