API

API Reference

Properties

Name Description Type Required Default value
value Defines the value. number
type Defines type of format. "number" | "percent" | "currency" | "currency-code" | "digital" | "digital-binary" (divided by 1024) number
precision Defines the fix precision. number 0
trim-fraction-zeros Trim the fraction zeros at the end of the number after applying precision. boolean false
currency Defines the currency if type is currency or currency-code. string EUR
humanize Formats a number to a more human-readable string. ['auto'|k'|'m'|'b'|'t']