(calc-check-digit* base)Computes the PIS check digit using weighted sum.
PIS algorithm: digit = 11 - (weightedSum % 11); if result is 10 or 11, digit becomes 0.
Computes the PIS check digit using weighted sum. PIS algorithm: digit = 11 - (weightedSum % 11); if result is 10 or 11, digit becomes 0.
Weights used in PIS check digit calculation (mod-11 algorithm). Applied left-to-right: [3 2 9 8 7 6 5 4 3 2]
Weights used in PIS check digit calculation (mod-11 algorithm). Applied left-to-right: [3 2 9 8 7 6 5 4 3 2]
Standard length of a Brazilian PIS (Programa de Integração Social) number.
Standard length of a Brazilian PIS (Programa de Integração Social) number.
(valid-checksum* pis)Validates the PIS check digit for 11-character cleaned input.
Validates the PIS check digit for 11-character cleaned input.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |