语言

BigDecimal.ByteValueExact 方法

定义

将此 BigDecimal 转换为 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

返回

等于 byte 值 this。

属性

注解

将此 BigDecimal 转换为 byte。 BigDecimal如果具有非零小数部分,或者不符合(8 位有符号整数)结果的可能范围byte,则会引发一个 ArithmeticException。

Java文档android.icu.math.BigDecimal.byteValueExact()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于