Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to get length of integer in java

int length = (int) (Math.log10(number) + 1);
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #length #integer #java
ADD COMMENT
Topic
Name
9+5 =