The price value to normalize.
The number of decimals to consider for normalization.
The direction of normalization. RAW = multiply by decimals, PRETTY = divide by decimals.
Optional
precision: numberThe precision to use when rounding the result. If not provided, the result is floored.
Normalizes a price value based on the provided decimals and direction.