Just continue according to the same logic:
var decis = Math.floor((distance % 1000) / 100);
So this will be a one-digit integer.
2
solved Is there a way of getting a decisecond value from millisecond value?
Just continue according to the same logic:
var decis = Math.floor((distance % 1000) / 100);
So this will be a one-digit integer.
2
solved Is there a way of getting a decisecond value from millisecond value?