How does one calculate the hash of a integer. Possibly stored as numeric, integer or string. whichever will work
something like ( return (XYZNumeric[0:1]*1+XYZNumeric[1:2]*2+XYZNumeric[2:3]*3)%10)
The only quick way I can think of is to take advantage of the LPL using type operator and relying on the Java format string to get the Java hash of the value as a hexadecimal number.
Using your example:
return XYZNumeric using "%1H"
or
return XYZNumeric using "%1h"
(depending on whether you like your hexadecimal numbers to use A-F or a-f respectively).
Converting the hex value to base 10 would be doable using a while loop, I think, but also a pain.