Hi,
I would like editor access to the wiki, my username is mglauser and I would like to modify
https://wiki.postgresql.org/wiki/Luhn_algorithm.
The current snippet uses
ceil(log( $1 ))::integer - 1
which calculates the wrong number of digits for numbers like 1, 10, 1000, ...
I would propose to change it to
floor(log( $1 ))::integer
regards
Marco