Hi,
I want to calculate a checksum of a number based on a weighting.
To let it keep simple, I have a number varNumber 123456.
The weighting is varWeigthing 131313.
I want to multiply the first position of varNumber with the first position of varWeigthing and so on and get the sum as a result.
In this example:
1 * 1 = 1
2 * 3 = 6
3 * 1 = 3
4 * 3 = 12
5 * 1 = 5
6 * 3 = 18
1+6+3+12+5+18 = 45
So I want to get the result 45.
Any idea?
Thanks
Stefan

Report
All responses (
Answers (