MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / pymod

Function pymod

codebase/sources/dhtmlxscheduler.js:15767–15770  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

15765 return num ? splits.slice(0, num).concat([splits.slice(num).join(sep)]) : splits;
15766 };
15767 var pymod = function(a, b) {
15768 var r = a % b;
15769 return r * b < 0 ? r + b : r;
15770 };
15771 var divmod = function(a, b) {
15772 return { div: Math.floor(a / b), mod: pymod(a, b) };
15773 };

Callers 5

divmodFunction · 0.70
dhtmlxscheduler.jsFile · 0.70
rebuildYearFunction · 0.70
rebuildMonthFunction · 0.70
buildPoslistFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected