parsePrecision Function
Beta validates the input value, that is typically extracted for persisted JSON data, is a valid DecimalPrecision or FractionalPrecision.
parsePrecision(precision: number, type: FormatType, formatName: string): DecimalPrecision | FractionalPrecision
Parameter | Type | Description |
---|---|---|
precision | number | |
type | FormatType | |
formatName | string |
Returns - DecimalPrecision | FractionalPrecision
Defined in
Last Updated: 20 June, 2023