Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

length of number c++

#include<cmath>
    ...
    int size = trunc(log10(num)) + 1
....
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #length #number
ADD COMMENT
Topic
Name
2+2 =