Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

calc the number of digits

int count = 0;
int n = number;

while (n != 0)
{
    n /= 10;
    cout++;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #calc #number #digits
ADD COMMENT
Topic
Name
7+4 =