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

Function pymod

codebase/sources/dhtmlxscheduler.es.js:15763–15766  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

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

Callers 5

divmodFunction · 0.70
rebuildYearFunction · 0.70
rebuildMonthFunction · 0.70
buildPoslistFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected