int 2 Sections StandardLIB Doc

Def a n == if 0aa n ;((-a) rem n)=0-((-a) n) else -((-a) n)+-1 fi

is mentioned by

Thm* a:, n:. a = (a n)n+(a mod n)[div_floor_mod_sum]

Try larger context: StandardLIB

int 2 Sections StandardLIB Doc