#I have a really niche question that maybe doesn't even have a solution

9 messages · Page 1 of 1 (latest)

wheat kestrel
#

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

GitHub

Mathematical Expressions Evaluator for .NET. Contribute to ncalc/ncalc development by creating an account on GitHub.

sullen swallowBOT
#
  1. Wait patiently for a helper to come along.
  2. Once someone helps you, say thank you and close the thread with:
+close
  1. Feel free to nominate the person for helper of the week in #helper-nominations
  2. Do not ping the mods, unless someone is breaking the rules.
  3. If you're happy with the help you got here, and the server overall, you can contribute financially as well:
sudden burrow
#

I meant rounding down, by the way.
So, for example, if you want to get 9079 from 100090798:

  1. Round 100090798 to 10^6. You get 100000000.
  2. Subtract the result. You get 90798.
  3. Round 90798 to 10^1. You get 90790.
  4. Divide the result by 10. You get 90790.
pliant thicketBOT
#

@wheat kestrel has given 1 rep to @sudden burrow

sudden burrow
#

You're welcome!

wheat kestrel
#

+close