Function getPrecisionValueFromRaw

Constructs a PrecisionValue object from a RawValue. It calculates the scoped representation of the rawValue (which is in providedScope) by converting it to the currentScope.