RoundingMode.ValueOf Method
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
ValueOf(RoundOptions) |
Returns the |
ValueOf(String) |
Returns the |
ValueOf(RoundOptions)
Returns the RoundingMode
object corresponding to a
legacy integer rounding mode constant in BigDecimal
.
[Android.Runtime.Register("valueOf", "(I)Ljava/math/RoundingMode;", "")]
public static Java.Math.RoundingMode? ValueOf (Java.Math.RoundOptions mode);
[<Android.Runtime.Register("valueOf", "(I)Ljava/math/RoundingMode;", "")>]
static member ValueOf : Java.Math.RoundOptions -> Java.Math.RoundingMode
Parameters
- mode
- RoundOptions
rounding mode constant as defined in class BigDecimal
Returns
RoundingMode
corresponding to the given integer.
- Attributes
Remarks
Java documentation for java.math.RoundingMode.valueOf(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
ValueOf(String)
Returns the RoundingMode
object corresponding to a
legacy integer rounding mode constant in BigDecimal
.
[Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/math/RoundingMode;", "")]
public static Java.Math.RoundingMode? ValueOf (string? name);
[<Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/math/RoundingMode;", "")>]
static member ValueOf : string -> Java.Math.RoundingMode
Parameters
- name
- String
Returns
RoundingMode
corresponding to the given integer.
- Attributes
Remarks
Java documentation for java.math.RoundingMode.valueOf(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.