20230704 java.text.DecimalFormatSymbols

发布时间 2023-08-24 10:31:29作者: 流星<。)#)))≦

介绍

  • java.text.DecimalFormatSymbols
  • public class DecimalFormatSymbols implements Cloneable, Serializable

API

static

  • getInstance
  • getAvailableLocales

构造器

  • DecimalFormatSymbols()
  • DecimalFormatSymbols( Locale locale )

public

  • setCurrency, getCurrency

  • setDigit, getDigit

  • setPatternSeparator, getPatternSeparator

  • setCurrencySymbol, getCurrencySymbol

    • $EUR 这样的字符串,用于包含货币符号的前缀或后缀中
  • setDecimalSeparator, getDecimalSeparator, setMonetaryDecimalSeparator, getMonetaryDecimalSeparator

    • 小数分隔符,用于数字或货币值
  • setExponentSeparator, getExponentSeparator

    • 在指数 E 部分之前的字符串,通常是 E
  • setGroupingSeparator, getGroupingSeparator, setMonetaryGroupingSeparator, getMonetaryGroupingSeparator

    • 群组分隔符,用于数字或货币值
  • setInfinity, getInfinity, setNaN, getNaN

    • 用于格式化的字符串,Double.POSITIVE_INFINITY , Double.NEGATIVE_INFINITY , Double.NaN
  • setInternationalCurrencySymbol, getInternationalCurrencySymbol

    • 遵循 ISO 4217 标准的货币符号
  • setMinusSign, getMinusSign

    • 在未指定负数模式的情况下使用的负号
  • setPerMill, getPerMill, setPercent, getPercent

    • 用于百分号和千分号的符号
  • setZeroDigit, getZeroDigit

    • 用于数字位0的字符。其他数字位为后续的 9 个 Unicode 字符