MCPcopy Create free account
hub / github.com/angular/components / euclideanModulo

Function euclideanModulo

src/material/datepicker/multi-year-view.ts:455–457  ·  view source on GitHub ↗

Gets remainder that is non-negative, even if first number is negative

(a: number, b: number)

Source from the content-addressed store, hash-verified

453
454/** Gets remainder that is non-negative, even if first number is negative */
455function euclideanModulo(a: number, b: number): number {
456 return ((a % b) + b) % b;
457}

Callers 1

getActiveOffsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected