<Code Lib>
2025.3 Method
Changes 1
M

FormatOptions.IsValidAccuracy(ForgeTypeId, Double)

Description:
Checks whether an accuracy is valid for a given unit.
Remarks:
See the Accuracy property for details on valid accuracy values.
Overloads (2):
IsValidAccuracy(ForgeTypeId,Double)

public static bool IsValidAccuracy(
	ForgeTypeId unitTypeId,
	double accuracy
)

  • unitTypeId
    Identifier of the unit.
  • Double
    accuracy
    The accuracy to check.
Return Value Boolean True if the accuracy is valid, false otherwise.

  • unitTypeId is not a unit identifier. See UnitUtils.IsUnit(ForgeTypeId) and UnitUtils.GetUnitTypeId(DisplayUnitType).
  • A non-optional argument was null

Loading…