parsePrecision Function
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: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.