Why This Converter is Not Working, | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Why This Converter is Not Working,

If i select kilometer to micrometer, its work perfectly, And if i select micrometer to kilometer, its not working, Please fix this code. https://code.sololearn.com/Wfzx1HlIhHFN/?ref=app

11th Jul 2023, 7:06 PM
š€š²šžš¬š”šš ššØšØš«
š€š²šžš¬š”šš ššØšØš« - avatar
7 Respostas
+ 6
This works. For example if you take 1.0E+18 micrometer2 you will get 1 km2.
11th Jul 2023, 8:10 PM
JaScript
JaScript - avatar
+ 5
Kamen Studentov Why do you think it is not working?
12th Jul 2023, 7:14 AM
JaScript
JaScript - avatar
+ 2
I think itā€™s working fine. Maybe increase ā€˜maximumFractionDigitsā€™ some more so it doesnā€™t round to 0.
12th Jul 2023, 9:15 AM
Kamen Studentov
Kamen Studentov - avatar
+ 1
aYeShA it converted correctly, to me, I have tried checked on Google as well the convertion rate, and it displays correctly.
12th Jul 2023, 12:50 AM
Danish Zubair
Danish Zubair - avatar
+ 1
Convert back micrometer to kilometer, its not work.
12th Jul 2023, 12:52 AM
š€š²šžš¬š”šš ššØšØš«
š€š²šžš¬š”šš ššØšØš« - avatar
+ 1
Try applying this formula in the JavaScript line 46: 1 Āµm^2 = 1.0E-18 km^2 I am also trying to figure out this, meanwhile try this and I try finding out different solution.
12th Jul 2023, 12:57 AM
Danish Zubair
Danish Zubair - avatar
0
What does ā€œnot workingā€ mean? How do you think itā€™s supposed to work?
12th Jul 2023, 3:32 AM
Kamen Studentov
Kamen Studentov - avatar