Top "Digit" questions

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

Get last three digits of an integer

I wish to change an integer such as 23457689 to 689, 12457245 to 245 etc. I do not require the numbers to be rounded …

python integer int digit
python isdigit() function return true for non digit character u'\u2466'

I come across a strange problem dealing with python isdigit function. For example: >>> a = u'\u2466' &…

python unicode digit
How to get one digit random number in javascript?

Possible Duplicate: Generating random numbers in Javascript in a specific range? Can some one tell me how to get one …

javascript math random digit
Find & Replace digit by digit and space in Sublime Text

I have lot of digits and I want to add spaces in between them, like so: 0123456789 --> 0 1 2 3 4 5 6 7 8 9 I'm trying …

regex replace find sublimetext3 digit
What is the fastest algorithm for division of crazy large integers?

I need to divide numbers represented as digits in byte arrays with non standard amount of bytes. It maybe 5 bytes …

algorithm math byte division digit
Filtering out strings that only contains digits and/or punctuation - python

I need to filter out only strings that contains only digits and/or a fix set of punctuation. I've tried …

python string digit punctuation
How to use 12 digit number in C?

I am dealing with a math example. I need to use 12 digit number for my code. So which datatype should …

c digit
Finding a Specific Digit of a Number

I'm trying to find the nth digit of an integer of an arbitrary length. I was going to convert the …

c++ integer digit
Printing leading zeros in a number in C

I'm working on a project and I want my program to read a strictly 5 digits number with a leading zero. …

c numbers digit leading-zero
C/Objective-C read and get last digit of integer?

How can i get the last digit of an integer (or NSInteger) outputted to integer? example: int time = CFAbsoluteGetCurrent(); int …

objective-c c integer nsinteger digit