API Reference > imodeljs-Quantity > Quantity > Format > parseDecimalPrecision parseDecimalPrecision MethodStatic This method validates the input value, that is typically extracted for persisted JSON data, is a valid DecimalPrecision. Throws exception if not valid. parseDecimalPrecision(jsonObjPrecision: number): DecimalPrecision Parameter Type Description jsonObjPrecision number Returns - DecimalPrecision Defined in quantity/src/Formatter/Format.ts Line 244 Last Updated: 12 June, 2024