Java.Math.BigDecimal.ByteValueExact Method
Returns this BigDecimal as a byte value if it has no fractional part and if its value fits to the byte range ([-128.

Syntax

[Android.Runtime.Register("byteValueExact", "()B", "GetByteValueExactHandler")]
public virtual sbyte ByteValueExact ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.ArithmeticExceptionif rounding is necessary or the number doesn't fit in a byte.

Remarks

Returns this BigDecimal as a byte value if it has no fractional part and if its value fits to the byte range ([-128..127]). If these conditions are not met, an ArithmeticException is thrown.

[Android Documentation]

Requirements

Namespace: Java.Math
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1