MathContext Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MathContext(Int32) |
Constructs a new |
MathContext(Int32, MathNotationForm) |
Constructs a new |
MathContext(Int32, MathNotationForm, Boolean) |
Constructs a new |
MathContext(Int32, MathNotationForm, Boolean, RoundOptions) |
Constructs a new |
MathContext(Int32)
Constructs a new MathContext
with a specified
precision.
[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
Parameters
- setdigits
- Int32
The int
digits setting
for this MathContext
.
- Attributes
Remarks
Constructs a new MathContext
with a specified precision. The other settings are set to the default values (see #DEFAULT
).
An IllegalArgumentException
is thrown if the setdigits
parameter is out of range (<0 or >999999999).
Java documentation for android.icu.math.MathContext.MathContext(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
MathContext(Int32, MathNotationForm)
Constructs a new MathContext
with a specified
precision and form.
[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
Parameters
- setdigits
- Int32
The int
digits setting
for this MathContext
.
- setform
- MathNotationForm
The int
form setting
for this MathContext
.
- Attributes
Remarks
Constructs a new MathContext
with a specified precision and form. The other settings are set to the default values (see #DEFAULT
).
An IllegalArgumentException
is thrown if the setdigits
parameter is out of range (<0 or >999999999), or if the value given for the setform
parameter is not one of the appropriate constants.
Java documentation for android.icu.math.MathContext.MathContext(int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
MathContext(Int32, MathNotationForm, Boolean)
Constructs a new MathContext
with a specified
precision, form, and lostDigits setting.
[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
Parameters
- setdigits
- Int32
The int
digits setting
for this MathContext
.
- setform
- MathNotationForm
The int
form setting
for this MathContext
.
- setlostdigits
- Boolean
The boolean
lostDigits
setting for this MathContext
.
- Attributes
Remarks
Constructs a new MathContext
with a specified precision, form, and lostDigits setting. The roundingMode setting is set to its default value (see #DEFAULT
).
An IllegalArgumentException
is thrown if the setdigits
parameter is out of range (<0 or >999999999), or if the value given for the setform
parameter is not one of the appropriate constants.
Java documentation for android.icu.math.MathContext.MathContext(int, int, boolean)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
MathContext(Int32, MathNotationForm, Boolean, RoundOptions)
Constructs a new MathContext
with a specified
precision, form, lostDigits, and roundingMode setting.
[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
Parameters
- setdigits
- Int32
The int
digits setting
for this MathContext
.
- setform
- MathNotationForm
The int
form setting
for this MathContext
.
- setlostdigits
- Boolean
The boolean
lostDigits
setting for this MathContext
.
- setroundingmode
- RoundOptions
The int
roundingMode setting
for this MathContext
.
- Attributes
Remarks
Constructs a new MathContext
with a specified precision, form, lostDigits, and roundingMode setting.
An IllegalArgumentException
is thrown if the setdigits
parameter is out of range (<0 or >999999999), or if the value given for the setform
or setroundingmode
parameters is not one of the appropriate constants.
Java documentation for android.icu.math.MathContext.MathContext(int, int, boolean, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.