BigDecimal.MovePointRight(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個小數點向右移動了指定位置的平面 BigDecimal 。
[Android.Runtime.Register("movePointRight", "(I)Landroid/icu/math/BigDecimal;", "GetMovePointRight_IHandler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? MovePointRight(int n);
[<Android.Runtime.Register("movePointRight", "(I)Landroid/icu/math/BigDecimal;", "GetMovePointRight_IHandler", ApiSince=24)>]
abstract member MovePointRight : int -> Android.Icu.Math.BigDecimal
override this.MovePointRight : int -> Android.Icu.Math.BigDecimal
參數
- n
- Int32
該 int 指定將小數點向右移動的位數。
傳回
BigDecimal A 從 this衍生出,小數點向右移動n。
- 屬性
備註
回傳一個小數點向右移動了指定位置的平面 BigDecimal 。 參數 n,,指定了移動小數點所需的位置數。 也就是說,若為 n 0 或為正數,回傳的數值為:
this.multiply(TEN.pow(new BigDecimal(n)))
n 可能為負值,此時方法返回與 movePointLeft(-n) 相同的結果。
Java 文件 android.icu.math.BigDecimal.movePointRight(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。