code: public static double roundDoubleToClosest (double value, double steps) {
          final double down = DMatrixUtils.roundDoubleDownTo(value, steps);
          final double up = DMatrixUtils.roundDoubleUpTo(value, steps);
          if (Math.abs(value - down) < Math.abs(value - up)) {
              return down;
          }
          return up;
      }
docs: Same functionality as {@link DMatrixUtils#roundToClosest(double, double)} but operating on double values.
  
  @param value The value to be rounded.
  @param steps Steps.
  @return Rounded value.