compute

fun compute(body: String): Int(source)

Computes the check digit for body, the key digits without the check digit.

Throws

if body is empty or contains non-digit characters.