Skip to content

charton API


charton API / @chart-on/core / index / ZeroFold

Interface: ZeroFold ​

Defined in: packages/core/src/util/price-format.ts:19

Folding the leading zeros of very small prices into a count: with at least minZeros zeros after the decimal point (default 4), 0.00000412 shows as 0.0₅412 (style: 'subscript', the default) or 0.0{5}412 ('brace', for fonts without subscript digits). The count includes the zero shown.

Properties ​

minZeros? ​

optional minZeros?: number

Defined in: packages/core/src/util/price-format.ts:20


style? ​

optional style?: "subscript" | "brace"

Defined in: packages/core/src/util/price-format.ts:21