BigDecimal.Add Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| Add(BigDecimal) |
Retourne une |
| Add(BigDecimal, MathContext) |
Retourne une |
Add(BigDecimal)
Retourne une BigDecimal valeur dont la valeur est (this +
augend), et dont l’échelle est max(this.scale(),
augend.scale()).
[Android.Runtime.Register("add", "(Ljava/math/BigDecimal;)Ljava/math/BigDecimal;", "GetAdd_Ljava_math_BigDecimal_Handler")]
public virtual Java.Math.BigDecimal? Add(Java.Math.BigDecimal? augend);
[<Android.Runtime.Register("add", "(Ljava/math/BigDecimal;)Ljava/math/BigDecimal;", "GetAdd_Ljava_math_BigDecimal_Handler")>]
abstract member Add : Java.Math.BigDecimal -> Java.Math.BigDecimal
override this.Add : Java.Math.BigDecimal -> Java.Math.BigDecimal
Paramètres
- augend
- BigDecimal
valeur à ajouter à ce BigDecimal.
Retours
this + augend
- Attributs
Exceptions
si augend == null.
Remarques
Java documentation pour java.math.BigDecimal.add(java.math.BigDecimal).
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.
S’applique à
Add(BigDecimal, MathContext)
Retourne une BigDecimal valeur dont la valeur est (this + augend), avec arrondi en fonction des paramètres de contexte.
[Android.Runtime.Register("add", "(Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetAdd_Ljava_math_BigDecimal_Ljava_math_MathContext_Handler")]
public virtual Java.Math.BigDecimal? Add(Java.Math.BigDecimal? augend, Java.Math.MathContext? mc);
[<Android.Runtime.Register("add", "(Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetAdd_Ljava_math_BigDecimal_Ljava_math_MathContext_Handler")>]
abstract member Add : Java.Math.BigDecimal * Java.Math.MathContext -> Java.Math.BigDecimal
override this.Add : Java.Math.BigDecimal * Java.Math.MathContext -> Java.Math.BigDecimal
Paramètres
- augend
- BigDecimal
valeur à ajouter à ce BigDecimal.
- mc
- MathContext
contexte à utiliser.
Retours
this + augend, arrondi si nécessaire.
- Attributs
Exceptions
si augend == null ou mc == null.
Remarques
Java documentation pour java.math.BigDecimal.add(java.math.BigDecimal, java.math.MathContext).
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.