code: function roundToStep (value, step) {
    const stepDecimals = calculateDecimals(step);
    const stepDecimalsMultiplier = Math.pow(10, stepDecimals);
  
    value = Math.round(value / step) * step;
  
    return Math.round(value * stepDecimalsMultiplier) / stepDecimalsMultiplier;
  }
docs: Rounds value to step