Share via


RoundingMode.ValueOf Method

Definition

Overloads

ValueOf(RoundOptions)

Returns the RoundingMode object corresponding to a legacy integer rounding mode constant in BigDecimal.

ValueOf(String)

Returns the RoundingMode object corresponding to a legacy integer rounding mode constant in BigDecimal.

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.

Applies to