Skip to content
Sign upLog in
#WEEKLY challenge 14
Profile icon
userSM

So I made the unit converter required. Initially I was going to make the converter universal (supporting quantity, length, etc.), but there was a glitch that would automatically convert any given number to only micronits, disregarding you requested unit, so that wouldn't be very useful. So then I decided to make one with length, and this worked.
Feedback is appreciated and so are upvotes :)
Hope you find it helpful

You are viewing a single comment. View All
Profile icon
TheDrone7

It errors when I chose conversion from km to mm.

Profile icon
userSM

@TheDrone7
oh ok I'll try to fix it

Profile icon
userSM

@TheDrone7
it works fine for me

Profile icon
TheDrone7

@userSM

image

Profile icon
userSM

@TheDrone7

You entered 2. Your supposed to enter the number for the first input, and enter km for the second question

Profile icon
userSM

@TheDrone7
it says enter a supported unit

Profile icon
TheDrone7

@userSM
I did type in a supported unit.

For the first input, I enter 5 for the amount, second input, I enter 2 for km. Third input, I enter mm which is a supported unit as per your program.

Profile icon
userSM

@TheDrone7
oh then it's my fault for not making it clear. Instead of typing 2 type km. It's not choosing by index. Now try it.