Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to find out the amount of ints in c++

int x = 1000;
int numberOfDigits = x ? static_cast<int>(log10(abs(x))) + 1 : 1;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #amount #ints
ADD COMMENT
Topic
Name
6+6 =