precision From Display String
Returns a MeasurementPrecision based on the display string passed or null if it can't be found. Uses the same mapping as toDisplayString
Return
The MeasurementPrecision or null if not found.
Parameters
str
Display string
Returns a MeasurementPrecision based on the display string passed or null if it can't be found. This version handles unit-aware display strings generated by toDisplayString
Return
The MeasurementPrecision or null if not found.
Parameters
str
Display string with unit (e.g., "⅛ ft", "1/16 in")
unit
The unit that was used to generate the display string