Top "Digit" questions

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

Why was the space character not chosen for C++14 digit separators?

As of C++14, thanks to n3781 (which in itself does not answer this question) we may write code like the …

c++ language-lawyer c++14 digit
get the number of n digit in a 2+ digit number

For example, getting "5" in "256". The closest I've gotten is Math.floor(256/10)), but that'll still return the numbers in front. Is …

javascript numbers digit
Digit grouping in C's printf

I wish to output large numbers with thousand-separators (commas or spaces) — basically the same as in How to display numeric …

c printf grouping digit
Fastest method for adding/summing the individual digit components of a number

I saw a question on a math forum a while back where a person was discussing adding up the digits …

algorithm math sum iteration digit
How do i find the highest digit in a multi-digit number?

Okay so I have an exercise to do I need to find the highest and the lowest digit in a …

java numbers digit highest
How to get the rightmost digit from an Integer - Ruby

I am working on a program that requires me to read in and validate a number, but in doing so …

ruby integer digit
Algorithm for digit summing?

I'm searching for an algorithm for Digit summing. Let me outline the basic principle: Say you have a number: 18268. 1 + 8 + 2 + 6 + 8 = 25 2 + 5 = 7 And 7 …

algorithm numbers digit
Using MNIST DATABASE for digits recognition.

I am trying to use the MNIST DATABASE in order to recognize hand written digits. What I have so far …

matlab image-recognition digit handwriting mnist