Is there a way to get the number of digits in integers? For instance:
int a = 12345;
I want to determine what ahas 5 digits
a
int a = 12345; int length = a.ToString().Length; // returns 5
Source: https://habr.com/ru/post/1760949/More articles:Rotating views in a LinearLayout task - javaIs MySQL Workbench required for the server to work? - mysqlThe ++ operator (int x) creates a new instance each time? - immutability.cvspass generate files to configure hudson tool - hudsonDjango datetime - user friendly format - djangoUsing JavaScript with Yii (XWF / SWF Graphics) - javascriptHow accurate are U.S. GIS data? - javascriptIndexing files and a quick way to find a file in folders? - c #Log4Net fun database - connection strings! - c #Android: network operations in Appwidget - androidAll Articles