Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

number of digits calculation

number_of_digits = 0
    a_variable = input
    while a_variable >= 1:
        number_of_digits += 1
        a_variable /= 10
#Just translated Kind Kinkajou's answer to python.
#Please support him.
#Profile link: https://www.codegrepper.com/app/profile.php?id=341732
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #number #digits #calculation
ADD COMMENT
Topic
Name
3+7 =