I have the value 56.024096385542165 and I want the number before the dot. (In this case, it's 56).
How can I do this using JavaScript?
I have the value 56.024096385542165 and I want the number before the dot. (In this case, it's 56).
How can I do this using JavaScript?
Just do
parseInt(yournumber, 10)