Numeric

Formats numeric values based on language (US only for now).

Default

<e-numeric value="10000000"></e-numeric>
<e-numeric value="10000000"></e-numeric>

Variations

Precision[precision="2"]

<e-numeric value="10000000" precision="2"></e-numeric>
<e-numeric value="10000000" precision="2"></e-numeric>

Percent[type="percent"]

<e-numeric value="0.1" type="percent"></e-numeric>
<e-numeric value="0.1" type="percent"></e-numeric>

Currency[type="currency", currency="USD"]

<e-numeric value="256" type="currency" currency="USD"></e-numeric>
<e-numeric value="256" type="currency" currency="USD"></e-numeric>

API Reference

Properties

NameDescriptionTypeRequiredDefault value
valueDefines the value.number
typeDefines type of format."number" | "percent" | "currency"number
precisionDefines the fix precision.number0
currencyDefines the currency if type is currency.stringEUR