Bitbybit Docs
    Preparing search index...

    Class ToFixedDto (Inputs.Math)

    用于 math.toFixed 的数值和精度,它将数值格式化为文本。

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalnumber: number
      • OptionaldecimalPlaces: number

      Returns ToFixedDto

    Properties

    number: number

    要格式化的数值。

    undefined
    

    -Infinity

    Infinity

    0.1

    decimalPlaces: number

    小数点后显示多少位,不足时补零。

    2
    

    -Infinity

    Infinity

    1