Liking cljdoc? Tell your friends :D

brazilian-utils.pis.internal


calc-check-digit*clj/s

(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.
sourceraw docstring

check-digit-weightsclj/s

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]
sourceraw docstring

pis-lengthclj/s

Standard length of a Brazilian PIS (Programa de Integração Social) number.

Standard length of a Brazilian PIS (Programa de Integração Social) number.
sourceraw docstring

valid-checksum*clj/s

(valid-checksum* pis)

Validates the PIS check digit for 11-character cleaned input.

Validates the PIS check digit for 11-character cleaned input.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close