FormatOptions.IsValidAccuracy(ForgeTypeId, Double)
Method
Description:
Checks whether an accuracy is valid for a given unit.
Checks whether an accuracy is valid for a given unit.
Remarks:
See the Accuracy property for details on valid accuracy values.
See the Accuracy property for details on valid accuracy values.
Parameters
| Parameter | Type | Description |
|---|---|---|
| unitTypeId | ForgeTypeId | Identifier of the unit. |
| accuracy | Double | The accuracy to check. |
Return Value
| Type | Description |
|---|---|
| Boolean | True if the accuracy is valid, false otherwise. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | unitTypeId is not a unit identifier. See UnitUtils.IsUnit(ForgeTypeId) and UnitUtils.GetUnitTypeId(DisplayUnitType). |
| ArgumentNullException | A non-optional argument was null |