語言

DecimalFormat.ScientificNotation 屬性

定義

[加護病房] 回傳此格式化器是否啟用科學(指數)符號。 -或- [icu]科學符號: 設定此格式器是否應以科學(指數)符號列印。

public virtual bool ScientificNotation { [Android.Runtime.Register("isScientificNotation", "()Z", "GetIsScientificNotationHandler", ApiSince=24)] get; [Android.Runtime.Register("setScientificNotation", "(Z)V", "GetSetScientificNotation_ZHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("isScientificNotation", "()Z", "GetIsScientificNotationHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setScientificNotation", "(Z)V", "GetSetScientificNotation_ZHandler", ApiSince=24)>]
member this.ScientificNotation : bool with get, set

屬性值

true 如果啟用了科學符號;否則, false。

屬性

備註

財產取得者文件:

[加護病房] 回傳此格式化器是否啟用科學(指數)符號。

Java 文件 android.icu.text.DecimalFormat.isScientificNotation()。

屬性設定文件:

[icu]科學符號: 設定此格式工具是否應以科學(指數)符號形式列印。 例如,若啟用科學符號,數字 123000 會在 locale en-US中以「1.23E5」列印。 使用特定區域符號作為指數分隔符。

呼叫 df.setScientificNotation(true) 在功能上等同於呼叫 df.setMinimumExponentDigits(1)。

Java 文件 android.icu.text.DecimalFormat.setScientificNotation(boolean)。

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

適用於