DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
get number of digits in a number
function getlength(number) { return number.toString().length; }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#number
#digits
#number
ADD COMMENT
Topic
COMMENT
Name
3+4 =
Submit