unitelabs.labware.math.units

Attributes

  • Name
    Number
    Type
    Value

    = typing.Union[str, int, float, tuple[int, collections.abc.Sequence[int], int], decimal.Decimal]

    Description

Functions

  • mm_to_100um(value : Number) -> int

    Convert mm into 0.1mm.

    Parameters

    • Name
      value
      Type
      Number
      Default
      Description

      The number in mm to convert.

    Response

    Type
    int
    Description

    The value with unit 0.1mm.

  • to_mm(value : int) -> decimal.Decimal

    Convert 0.1mm into mm.

    Parameters

    • Name
      value
      Type
      int
      Default
      Description

      The number in 0.1mm to convert.

    Response

    Type
    decimal.Decimal
    Description

    The value with unit mm.

  • parse_number(value : Number) -> decimal.Decimal

    Convert any valid number to a decimal value.

    Parameters

    • Name
      value
      Type
      Number
      Default
      Description

      The number to convert.

    Response

    Type
    decimal.Decimal
    Description

    The decimal value.

  • ul_to_100nl(value : Number) -> int

    Convert µl into 0.1µl.

    Parameters

    • Name
      value
      Type
      Number
      Default
      Description

      The number in µl to convert.

    Response

    Type
    int
    Description

    The value with unit 0.1µl.

  • to_ul(value : Number) -> decimal.Decimal

    Convert 0.1µl into µl.

    Parameters

    • Name
      value
      Type
      Number
      Default
      Description

      The number in 0.1µl to convert.

    Response

    Type
    decimal.Decimal
    Description

    The value with unit µl.

  • c_to_100c(value : Number) -> int

    Convert °C into 0.1°C.

    Parameters

    • Name
      value
      Type
      Number
      Default
      Description

      The number in °C to convert.

    Response

    Type
    int
    Description

    The value with unit 0.1°C.

  • to_c(value : int) -> decimal.Decimal

    Convert 0.1°C into °C.

    Parameters

    • Name
      value
      Type
      int
      Default
      Description

      The number in 0.1°C to convert.

    Response

    Type
    decimal.Decimal
    Description

    The value with unit °C.

Copyright © 2024