MCPcopy Create free account
hub / github.com/MenoData/Time4J / floorDivide

Method floorDivide

base/src/main/java/net/time4j/base/MathUtils.java:409–420  ·  view source on GitHub ↗
(
        int value,
        int divisor
    )

Source from the content-addressed store, hash-verified

407 * @return quotient as result of division
408 */
409 public static int floorDivide(
410 int value,
411 int divisor
412 ) {
413
414 if (value >= 0) {
415 return (value / divisor);
416 } else {
417 return ((value + 1) / divisor) - 1;
418 }
419
420 }
421
422 /**
423 * <p>See {@link #floorDivide(int, int)}. </p>

Callers 15

translateMethod · 0.95
translateMethod · 0.95
fromMethod · 0.95
getWeekMethod · 0.95
fromMethod · 0.95
atStartOfDayMethod · 0.95
fromEpochMonthsMethod · 0.95
doAddMethod · 0.95
withValueMethod · 0.95
normalizeMethod · 0.95
addToMethod · 0.95
addToMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected