Top "Digits" questions

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

How to tell if string starts with a number with Python?

I have a string that starts with a number (from 0-9) I know I can "or" 10 test cases using startswith() …

python string digits
Show a leading zero if a number is less than 10

Possible Duplicate: JavaScript equivalent to printf/string.format How can I create a Zerofilled value using JavaScript? I have a …

javascript math numbers digits
Set the digits after decimal point

I have a float number for example 12.12123 Is there a function which would display only number with 2 digits after decimal …

c++ digits
Finding the number of digits of an integer

What is the best method to find the number of digits of a positive integer? I have found this 3 basic …

algorithm digits counting
Delete digits in Python (Regex)

I am trying to delete all digits from a string. However, the next code deletes as well digits contained in …

python regex digits
Sum all the digits of a number Javascript

I am newbie. I want to make small app which will calculate the sum of all the digits of a …

javascript numbers sum digits
Only accept digits for textbox

I found this code for making my textbox only accept numbers. Private Sub TextBox1_KeyPress(ByVal sender As System.Object, …

vb.net textbox digits
C# string starts with a number regex

I've been searching around for a little while to figure out how to confirm a string begins with a number. …

c# regex string digits
Sum of digits in a string

if i just read my sum_digits function here, it makes sense in my head but it seems to be …

python string sum digits