MathContext 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| MathContext(Int32) |
构造具有指定精度的新 |
| MathContext(Int32, MathNotationForm) |
构造具有指定精度和窗体的新 |
| MathContext(Int32, MathNotationForm, Boolean) |
使用指定的精度、窗体和 lostDigits 设置构造一个新 |
| MathContext(Int32, MathNotationForm, Boolean, RoundOptions) |
构造具有指定精度、窗体、lostDigits 和 roundingMode 设置的新 |
MathContext(Int32)
构造具有指定精度的新 MathContext 项。
[Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=24)]
public MathContext(int setdigits);
[<Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=24)>]
new Android.Icu.Math.MathContext : int -> Android.Icu.Math.MathContext
参数
- setdigits
- Int32
此intMathContext数字设置。
- 特性
注解
构造具有指定精度的新 MathContext 项。 其他设置设置为默认值(请参阅 #DEFAULT)。
如果setdigits参数超过范围(<0 或>999999999),则会引发 anIllegalArgumentException。
Java文档android.icu.math.MathContext.MathContext(int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
MathContext(Int32, MathNotationForm)
构造具有指定精度和窗体的新 MathContext 项。
[Android.Runtime.Register(".ctor", "(II)V", "", ApiSince=24)]
public MathContext(int setdigits, Android.Icu.Math.MathNotationForm setform);
[<Android.Runtime.Register(".ctor", "(II)V", "", ApiSince=24)>]
new Android.Icu.Math.MathContext : int * Android.Icu.Math.MathNotationForm -> Android.Icu.Math.MathContext
参数
- setdigits
- Int32
此intMathContext数字设置。
- setform
- MathNotationForm
此intMathContext窗体设置 。
- 特性
注解
构造具有指定精度和窗体的新 MathContext 项。 其他设置设置为默认值(请参阅 #DEFAULT)。
如果setdigits参数不在范围(<0 或 >999999999),或者为setform参数提供的值不是适当的常量之一,则会引发 anIllegalArgumentException。
Java文档android.icu.math.MathContext.MathContext(int, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
MathContext(Int32, MathNotationForm, Boolean)
使用指定的精度、窗体和 lostDigits 设置构造一个新 MathContext 项。
[Android.Runtime.Register(".ctor", "(IIZ)V", "", ApiSince=24)]
public MathContext(int setdigits, Android.Icu.Math.MathNotationForm setform, bool setlostdigits);
[<Android.Runtime.Register(".ctor", "(IIZ)V", "", ApiSince=24)>]
new Android.Icu.Math.MathContext : int * Android.Icu.Math.MathNotationForm * bool -> Android.Icu.Math.MathContext
参数
- setdigits
- Int32
此intMathContext数字设置。
- setform
- MathNotationForm
此intMathContext窗体设置 。
- setlostdigits
- Boolean
此项的 booleanMathContextlostDigits 设置。
- 特性
注解
使用指定的精度、窗体和 lostDigits 设置构造一个新 MathContext 项。 roundingMode 设置设置为其默认值(请参阅 #DEFAULT)。
如果setdigits参数不在范围(<0 或 >999999999),或者为setform参数提供的值不是适当的常量之一,则会引发 anIllegalArgumentException。
Java文档android.icu.math.MathContext.MathContext(int, int, boolean)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
MathContext(Int32, MathNotationForm, Boolean, RoundOptions)
构造具有指定精度、窗体、lostDigits 和 roundingMode 设置的新 MathContext 项。
[Android.Runtime.Register(".ctor", "(IIZI)V", "", ApiSince=24)]
public MathContext(int setdigits, Android.Icu.Math.MathNotationForm setform, bool setlostdigits, Android.Icu.Math.RoundOptions setroundingmode);
[<Android.Runtime.Register(".ctor", "(IIZI)V", "", ApiSince=24)>]
new Android.Icu.Math.MathContext : int * Android.Icu.Math.MathNotationForm * bool * Android.Icu.Math.RoundOptions -> Android.Icu.Math.MathContext
参数
- setdigits
- Int32
此intMathContext数字设置。
- setform
- MathNotationForm
此intMathContext窗体设置 。
- setlostdigits
- Boolean
此项的 booleanMathContextlostDigits 设置。
- setroundingmode
- RoundOptions
此的 int roundingMode 设置 MathContext。
- 特性
注解
构造具有指定精度、窗体、lostDigits 和 roundingMode 设置的新 MathContext 项。
如果setdigits参数不在范围(<0 或>999999999),或者为setform或setroundingmode参数提供的值不是适当的常量之一,则会引发 anIllegalArgumentException。
Java文档android.icu.math.MathContext.MathContext(int, int, boolean, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。