code: public static int getRounded(double value, int round)
      {
          Check.different(round, 0);
  
          return (int) Math.floor(value / round) * round;
      }
docs: Get the rounded value.
  
  @param value The value.
  @param round The round factor (must not be equal to 0).
  @return The rounded value.
  @throws LionEngineException If invalid argument.