Number β Set:
factors = [52,7,24,60,60,1000] value = 662321 for i in n-1..0 res[i] = value mod factors[i] value = value div factors[i]
And vice versa:
If you have a number like 32 (52), 5 (7), 7 (24), 45 (60), 15 (60), 500 (1000), and you want this conversion to be decimal:
Take the number n, multiply it by the factor n-1, continue with n-1..n = 0
values = [32,5,7,45,15,500] factors = [52,7,24,60,60,1000] res = 0; for i in 0..n-1 res = res * factors[i] + values[i]
And you have a number.
Toon krijthe
source share