Bitbybit Docs
    Preparing search index...

    Class ToFixedDto (Inputs.Math)

    A number and a precision for math.toFixed, which formats it as text.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalnumber: number
      • OptionaldecimalPlaces: number

      Returns ToFixedDto

    Properties

    number: number

    The number to format.

    undefined
    

    -Infinity

    Infinity

    0.1

    decimalPlaces: number

    How many digits to show after the decimal point, padding with zeros.

    2
    

    -Infinity

    Infinity

    1