Next number that is a 1 and zeroes There's probably a much better way of expressing this, but I don

Michelle Mendoza

Michelle Mendoza

Answered question

2022-07-07

Next number that is a 1 and zeroes
There's probably a much better way of expressing this, but I don't know it, so I guess that's part of the question too. I'm not even sure what to tag it.
How do I find the next number greater than a given number that is a 1 followed by zeroes.
For instance
12 => 100
9343 => 10,000
etc.
Thanks

Answer & Explanation

Kaya Kemp

Kaya Kemp

Beginner2022-07-08Added 18 answers

10 l o g 10 ( x ) + 1
Where x is the floor function, i.e. the highest integer n s.t. n x

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?