BigDecimal.Negate Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| Nombre | Description |
|---|---|
| Negate() |
Devuelve un valor sin formato |
| Negate(MathContext) |
Devuelve un |
Negate()
Devuelve un valor sin formato BigDecimal cuyo valor es -this.
[Android.Runtime.Register("negate", "()Landroid/icu/math/BigDecimal;", "GetNegateHandler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? Negate();
[<Android.Runtime.Register("negate", "()Landroid/icu/math/BigDecimal;", "GetNegateHandler", ApiSince=24)>]
abstract member Negate : unit -> Android.Icu.Math.BigDecimal
override this.Negate : unit -> Android.Icu.Math.BigDecimal
Devoluciones
BigDecimal cuyo valor es -this.
- Atributos
Comentarios
Devuelve un valor sin formato BigDecimal cuyo valor es -this.
Igual que #negate(MathContext), donde el contexto es new MathContext(0, MathContext.PLAIN) .
La longitud de la parte decimal (la escala) del resultado será this.scale()
Java documentación para android.icu.math.BigDecimal.negate().
Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.
Se aplica a
Negate(MathContext)
Devuelve un BigDecimal cuyo valor es -this.
[Android.Runtime.Register("negate", "(Landroid/icu/math/MathContext;)Landroid/icu/math/BigDecimal;", "GetNegate_Landroid_icu_math_MathContext_Handler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? Negate(Android.Icu.Math.MathContext? set);
[<Android.Runtime.Register("negate", "(Landroid/icu/math/MathContext;)Landroid/icu/math/BigDecimal;", "GetNegate_Landroid_icu_math_MathContext_Handler", ApiSince=24)>]
abstract member Negate : Android.Icu.Math.MathContext -> Android.Icu.Math.BigDecimal
override this.Negate : Android.Icu.Math.MathContext -> Android.Icu.Math.BigDecimal
Parámetros
- set
- MathContext
Configuración MathContext aritmética.
Devoluciones
BigDecimal cuyo valor es -this.
- Atributos
Comentarios
Devuelve un BigDecimal cuyo valor es -this.
Implementa el operador de negación (prefijo <b><-/b>) (tal como se define en la documentación decimal, vea BigDecimal class header) y devuelve el resultado como un BigDecimal objeto .
Java documentación para android.icu.math.BigDecimal.negate(android.icu.math.MathContext).
Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.