BigDecimal.ByteValueExact 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.
Converts this BigDecimal
to a byte
.
[Android.Runtime.Register("byteValueExact", "()B", "GetByteValueExactHandler", ApiSince=24)]
public virtual sbyte ByteValueExact ();
[<Android.Runtime.Register("byteValueExact", "()B", "GetByteValueExactHandler", ApiSince=24)>]
abstract member ByteValueExact : unit -> sbyte
override this.ByteValueExact : unit -> sbyte
Returns
A byte
equal in value to this
.
- Attributes
Remarks
Converts this BigDecimal
to a byte
. If the BigDecimal
has a non-zero decimal part or is out of the possible range for a byte
(8-bit signed integer) result then an ArithmeticException
is thrown.
Java documentation for android.icu.math.BigDecimal.byteValueExact()
.
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.