IntFormating extension

  • @Author: chuxiong
  • @Created at: 2023/3/2 4:05 下午
  • @Email:
  • @Company: 嘉联支付
  • description int 扩展
on

Properties

autoUnitFormat String

Available on int?, provided by the IntFormating extension

no setter
currencyFormat String

Available on int?, provided by the IntFormating extension

no setter
defaultValue int

Available on int?, provided by the IntFormating extension

no setter
percentFormat String

Available on int?, provided by the IntFormating extension

百分比格式化方法 0.25.percentFormat → "25%"
no setter
safeDoubleValue double

Available on int?, provided by the IntFormating extension

no setter
safeValue int

Available on int?, provided by the IntFormating extension

no setter
thousandSeparatedFormat String

Available on int?, provided by the IntFormating extension

支持千分位格式化 123456789.thousandSeparatedFormat → "123,456,789"
no setter

Methods

currencyFormatWithDef(bool autoMoneyUnit) String

Available on int?, provided by the IntFormating extension

currencyFormatWithSymbol(String symbol, {bool autoMoneyUnit = false}) String

Available on int?, provided by the IntFormating extension

通用货币格式化方法(带符号) print(15000.currencyFormatWithSymbol("¥")); // ¥ 150