語言

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 ,則會拋出 a ArithmeticException 。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於