Tell us what’s happening:
I would like to understand in-depth radix, why the result in the example would be 3 (“11”, 2)?
Your code so far
function convertToInteger(str) {
}
convertToInteger("10011");
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
.
Challenge: Use the parseInt Function with a Radix
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
ilenia
April 24, 2020, 12:40pm
#2
the radix say “this number is in base 2” (or if the radix is an other number, then in that base)
are you familiar on how to convert manually a number from decimal to binary or from binary to decimal?
if you are not, you need to study a bit on that
1 Like
Thank you!
No, I am not familiar with converting those, I have just now researched on bynary radix sistem and I understand the computer counts in binary system base 2 (0,1).
I dont know how to convert a number from decimal to binayr or binary to decimal, do you know resources for that?
Thanks!