x == x/k + x%k
Of course that was: x == (x/k)*k + x%kBut ok, you got the idea: going back and forth is lossless, just remember to add the modulus.
Lodovico Giaretta via Digitalmars-d Wed, 07 Sep 2016 08:16:04 -0700
x == x/k + x%k
Of course that was: x == (x/k)*k + x%kBut ok, you got the idea: going back and forth is lossless, just remember to add the modulus.