BigDecimal.Round(MathContext) 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.
Retourne un BigDecimal arrondi en fonction des MathContext paramètres.
[Android.Runtime.Register("round", "(Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetRound_Ljava_math_MathContext_Handler")]
public virtual Java.Math.BigDecimal? Round(Java.Math.MathContext? mc);
[<Android.Runtime.Register("round", "(Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetRound_Ljava_math_MathContext_Handler")>]
abstract member Round : Java.Math.MathContext -> Java.Math.BigDecimal
override this.Round : Java.Math.MathContext -> Java.Math.BigDecimal
Paramètres
- mc
- MathContext
contexte à utiliser.
Retours
arrondi BigDecimal en fonction des MathContext paramètres.
- Attributs
Exceptions
si mc.precision > 0 et mc.roundingMode ==
UNNECESSARY cela ne peut pas être représenté dans la précision donnée.
Remarques
Java documentation pour java.math.BigDecimal.round(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.