Bruce Rennie - 2018-04-03

Having looked at the code associated with each procedure adr(i) and digred(i), I would say that the documentation is wrong.

adr(i) will only work for positive numbers, it aborts on negative numbers

digred(i) works for both positive and negative numbers and makes a special case for 0 simply because it is using % 9 and for all multiples of 9 returning 9.

Even though both give the same value for all positive integers, including big integers, they are different functions and the documentation should be changed to reflect this.