+ 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 Antworten
+ 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