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