So, let's say I have a big number, like 100090798, I want to somehow get specific parts of that number using math. I have this available for use. To demonstrate what I need to do, basically, let's take the number from earlier, 100090798, I want to be able to somehow get 0798 or 0009 or 9079 by changing one variable. I'm sorry if I didn't choose a good tag, this is my first time posting here
#I have a really niche question that maybe doesn't even have a solution
9 messages · Page 1 of 1 (latest)
- Wait patiently for a helper to come along.
- Once someone helps you, say thank you and close the thread with:
+close
- Feel free to nominate the person for helper of the week in #helper-nominations
- Do not ping the mods, unless someone is breaking the rules.
- If you're happy with the help you got here, and the server overall, you can contribute financially as well:
Hm... You can try rounding the number to a specific digit, then subtracting the result from the initial number.
I meant rounding down, by the way.
So, for example, if you want to get 9079 from 100090798:
- Round 100090798 to 10^6. You get 100000000.
- Subtract the result. You get 90798.
- Round 90798 to 10^1. You get 90790.
- Divide the result by 10. You get 90790.
interesting.. Thanks
@wheat kestrel has given 1 rep to @sudden burrow
You're welcome!
+close