checksum UPU S10()
Creates a checksum using the algorithm specified in UPU S10. The input number a must be of length 8, smaller numbers are filled with leading zeros.
Parameters
|
Parameter |
Description |
|
a |
Number to create a checksum for. |
Example
|
Parameter a |
Result |
|
47312482 |
9 |
|
47302482 |
5 |
|
48302382 |
0 |
|
123456789 |
Termination with error. |
|
123 |
5 |
|
00000123 |
5 |