+ 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
7 Answers
+ 6
This works. For example if you take 1.0E+18 micrometer2 you will get 1 km2.
+ 5
Kamen Studentov Why do you think it is not working?
+ 2
I think it’s working fine. Maybe increase ‘maximumFractionDigits’ some more so it doesn’t round to 0.
+ 1
aYeShA it converted correctly, to me, I have tried checked on Google as well the convertion rate, and it displays correctly.
+ 1
Convert back micrometer to kilometer, its not work.
+ 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.
0
What does “not working” mean? How do you think it’s supposed to work?