Bitbybit Docs
    Preparing search index...

    Class RoundToDecimalsDto (Inputs.Math)

    Un nombre et une précision pour math.roundToDecimals et math.roundAndRemoveTrailingZeros.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalnumber: number
      • OptionaldecimalPlaces: number

      Returns RoundToDecimalsDto

    Properties

    number: number

    Le nombre à arrondir ; il n'est pas modifié, une copie arrondie est renvoyée.

    1.123456
    

    -Infinity

    Infinity

    0.1

    decimalPlaces: number

    Combien de chiffres garder après la virgule ; 0 arrondit à un nombre entier.

    2
    

    -Infinity

    Infinity

    1