global wrote: ↑Tue Jan 05, 2021 1:27 pmHi Mladen and all,
I searched all over trying to find out how to use MathMod or some other related code to find Digital Root Source Numbers but so far I found nothing so I hope you all can help.
I'm experimenting using MathMod to find the digital roots between numbers 1-9 of prices and that works perfectly with this line of code:
DigitalRoot = MathRound(1+MathMod((Price/points*10)-1,9));
For simplicity in the test code below I just used a starting non-decimal number instead of a price, incremented the original number by 9 and printed that list of 10 numbers along with their digital roots. Since digital roots don't change by adding 9, all the digital roots of the 10 numbers are 4. However, the last 2-digit source numbers for each of those 10 numbers are sometimes different. For a digital root of 4, the last source two-digit numbers can be either 13, 22 or 40, so my question is, can the MathMod function be used in any way or with some other functions to find those final previous two-digit source numbers instead of the single-digit final dgital root? If MathMod can be used in this way together with some other functions then can someone please help and explain how this can be done? Thank you very much.
Here is the test code I wrote that prints out a comment list of 10 numbers and their digital roots. I would like to see the previous two-digit source numbers of their digital roots calculated and listed as well but I couldn't figure out how to do it.
for(int k=0; k<11; k++)
DigitalRoot = MathRound(1+MathMod((Number+(9*k))-1,9));
List=StringConcatenate(List, k," Number: ", Number+(9*k)," DigitalRoot : ", DigitalRoot,"\n");
I'm looking forward to any suggestions. Thanks.
This is an interesting question so just tagging Mladen on this. He's a bit of a maths genuis when it comes to the complex stuff