Last post Jan 31, 2020 06:35 AM by yij sun
Jan 30, 2020 09:56 PM|progy85|LINK
currentUpdate.speed = (currentUpdate.deltaDistMetres / currentUpdate.deltaTimeSecs);
This code not works because I have a large number with e-. How can I conver to two decimal with number like: 0.4031989429132e-432
Jan 31, 2020 06:09 AM|PaulTheSmith|LINK
To two decimal places the number you have shown is 0.00 (your number is very small, not very large)
What result are you trying to obtain?
Jan 31, 2020 06:35 AM|yij sun|LINK
Accroding to your description, as far as I think,js can read the smallest number is 5e-324.So it will alert 0.00.
If your really number is more than the min value ,you could bignumber.js.
More details,you could refer to below article: