I'm looking to get the length of a number in JavaScript or jQuery?
I've tried value.length without any success, do I need to convert this to a string first?
value.length
var x = 1234567; x.toString().length;
This process will also work forFloat Number and for Exponential number also.
Float Number
Exponential number
2.1m questions
2.1m answers
60 comments
56.9k users