widthInDigits : Java Glossary


How many digits wide a number is when expressed in decimal, e.g. 999 is 2 digits wide. You could compute it with Math.log, with Integer.toString().length(), or best with a binary

This page is posted
on the web at:


Optional Replicator mirror
of mindprod.com
on local hard disk J:

Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number