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
1.4m articles
1.4m replys
5 comments
56.9k users