export default function modulo(n: number, d: number): number