Hello there! Does anyone have a mathematical formula that(works consistently) can convert a base-2 number to a base-10 number?
(forgive me if there’s already a topic with the answer to my question…)
This might help. I just googled this.
mmm its not like we never thought of this and ever put it in a game…
Sorry for being off topic but what would you need this for? And what does it do?
but @VALUEX is there a reason you want this exactly…
Technically, it’s not being off-topic, it’s related to GKC. It’s just math.
my brain hurts from just looking at this
(Post deleted to prevent further clutters)
Oh. My bad. My assumption was, you know, since you can use mathematical formulas in block code, especially in scientific notation. I think maybe you could use a squaring block for each number and then insert it with a block with a certain power. Exponential math is possible, isn’t it? Or is this system you’re trying to accomplish more complex?
Ok guys lets just focus on this Bit conversation Conversation
Also, quick question, if you are multiplying a constant or integer by a negative root, does it really convert it into a ten based number? You would probably have to start with either a negative number with a negative square to make it positive, and then you could convert into the desired number with place value.
And, multiplying a constant by a coefficient and then multiplying it exponentially by zero results in zero, unless there are some math strategies I haven’t quite gotten to yet.
Also, yes, not saying you don’t know what you’re talking about. You said you just searched it up, but maybe I should test that formula out somehow.
@here, this topic is on-topic because I am going to use the formula in gimkit creative to convert binary digits to real numbers, instead of using a bunch of if-else statements(which I currently am, but it is not efficient).
but what in gimkit are you using this for
Yes, I thought so. That’s interesting. Those else-if statements are pretty efficient for math.
Well, from my perspective.
So your saying I would:
f(m, n, o, p, q) = (mx^m + nx^n + ox^o + px^p + qx^q)^10
Would be the formula?
I have to add every single case(0001, 0010, etc.) into the logic gates which consumes a lot of block code.
I’m making a simple ALU and I need to use block code to convert the binary digits into real numbers so that I can easily access indexes within the RAM.
so this is just a random project your doing…
Correct.
Yknow you remind me quite a bit like Blackhole with his silly awesome projects