Top "Digit" questions

Questions dealing with getting, manipulating, or changing the digits of numbers

Which is best data type for phone number in MySQL and what should Java type mapping for it be?

I am using MySQL with Spring JDBC template for my web application. I need to store phone number with only …

java mysql phone-number digit
Finding the length of an integer in C

I would like to know how I can find the length of an integer in C. For instance: 1 => 1 25 => 2 12512 =&…

c integer digit
C: how to break apart a multi digit number into separate variables?

Say I have a multi-digit integer in C. I want to break it up into single-digit integers. 123 would turn into 1, 2, …

c math numbers digits digit
How do get numbers to display as two digits in C?

For C programming. How do i get numbers to be displayed as 00, 01, 02, 03, instead of 0, 1, 2, 3. I just need 0 before the number …

c digit
regular expression to match exactly 5 digits

testing= testing.match(/(\d{5})/g); I'm reading a full html into variable. From the variable, want to grab out all …

javascript regex match digit
JavaScript expression to generate a 5-digit number in every case

for my selenium tests I need an value provider to get a 5-digit number in every case. The problem with …

javascript random expression digit
PHP equivalent of JavaScript's parseInt function?

Possible Duplicate: Check if a variable is a natural number Just came across where I need to sanitize an input …

php function digit
Remove digits from a number in Java

How do I remove the first digit of an integer? My input is an integer (for example i = 123456789). I then …

java integer digit
VBA. How to find position of first digit in string

I have string "ololo123". I need get position of first digit - 1. How to set mask of search ?

vba digit
bash get a regular expression number up to 2 digits

I simply need to know how to make a regex that accepts a number that has up to 2 digits All …

regex bash digit