raz / test / run / MathDivFull.raz

13 lines · 267 B · raw · history · last change e8ec426b

1module MathDivFull;
2(* Math.divMod with hi >= d, whose quotient doesn't fit a word, stops the
3 program as a division by zero does *)
4import Math, Out;
5
6proc main*;
7var q, r: U64;
8begin
9 q, r := Math.divMod(5, 0, 5);
10 Out.hex(q + r, 1);
11end;
12
13end MathDivFull.