Bitbybit Docs
    Preparing search index...

    Class RoundToDecimalsDto (Inputs.Math)

    A number and a precision for math.roundToDecimals and math.roundAndRemoveTrailingZeros.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalnumber: number
      • OptionaldecimalPlaces: number

      Returns RoundToDecimalsDto

    Properties

    number: number

    The number to round; it is not changed, a rounded copy is returned.

    1.123456
    

    -Infinity

    Infinity

    0.1

    decimalPlaces: number

    How many digits to keep after the decimal point; 0 rounds to a whole number.

    2
    

    -Infinity

    Infinity

    1