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

Method floorMod

base/src/main/java/net/time4j/PlainTime.java:2043–2054  ·  view source on GitHub ↗
(
        long value,
        long divisor
    )

Source from the content-addressed store, hash-verified

2041 }
2042
2043 private static long floorMod(
2044 long value,
2045 long divisor
2046 ) {
2047
2048 long num =
2049 (value >= 0)
2050 ? (value / divisor)
2051 : (((value + 1) / divisor) - 1);
2052 return (value - divisor * num);
2053
2054 }
2055
2056 private static long floorDiv(
2057 long value,

Callers 15

plusMethod · 0.80
getTimeOfDayMethod · 0.80
addToMethod · 0.80
getValueMethod · 0.80
ofMethod · 0.80
plusMethod · 0.80
createFromMethod · 0.80
currentTimeMethod · 0.80
currentTimeInMillisMethod · 0.80
currentTimeInMicrosMethod · 0.80
realTimeInMicrosMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected