Function getPrecisionValueForScope

  • Converts a numeric value from one scope (unit) to its equivalent in another scope, preserving the actual physical magnitude. This uses the underlying scale factors relative to the base unit (meter).

    Parameters

    • providedValue: number

      The numeric value to convert.

    • providedScope: SupportedMeasures

      The scope (unit) of the provided value.

    • targetScope: SupportedMeasures

      The target scope (unit) to convert the value to.

    Returns number

    The equivalent value in the target scope.