NormalizePrice to a higher value
jeanpablojp:
Im trying to normalize my price but i need to be normalized to the higher pricer not the closest.
try this
double RoundUp(double var, double rounding) { return ceil(var/rounding)*rounding; }
Im trying to normalize my price but i need to be normalized to the higher pricer not the closest.
try this
double RoundUp(double var, double rounding) { return ceil(var/rounding)*rounding; }
You agree to website policy and terms of use
Im trying to normalize my price but i need to be normalized to the higher pricer not the closest.
Example.
When i try to normalize the value: 85977.14 im getting the price: 85975, but i need to enter more safe in the operation so the right price should be 85980.
Considering this Symbol is 5 in 5 points.
Any idea how i can fix this?
Thanks.