Skip to main content

Cash

cash(number, opts)​

Added in 1.3.0

Mark input number with cash

  • number - <number> Cash price.

  • opts - <Object> format options.

    • locale - <string> format locale. Default en-US.
    • currency - <string> Currency code, e.g. JPY, USD, EUR. Default USD.
    • currencyDisplay - <string>. Currency display.
    • maximumSignificantDigits - <number> maximum digits for not floating part.
    • minimumSignificantDigits - <number> minimum digits for not floating part.
    • maximumFractionDigits - <number> maximum digits for floating part.
    • minimumFractionDigits - <number> maximum digits for floating part.
    • minimumIntegerDigits - <number> minimum integer digits.
    • signDisplay - <string> sign display. Possible values: auto | never | always | exceptZero.