# Questions tagged [digits]

Questions dealing with the manipulation of the digits of numbers, including the functions RealDigits and IntegerDigits.

37 questions
Filter by
Sorted by
Tagged with
178 views

### DigitCount[], but in negative bases

The DigitCount[n,b] function "counts the gives a list of the numbers of $1, 2, \ldots, b-1, 0$ digits in the base-$b$ representation of $n$". I want to ...
94 views

### Test if the decimal digits of $n$ appear $n$ times in the decimal representation of $n!$

I want to find numbers $n$ for which the decimal digits of $n$ appear $n$ times in the decimal representation of $n!$. For instance, $n\in\left\{0, 1, 1170, 1528, 9877, 9886, 9897, 11535\right\}$ are ...
1 vote
65 views

### Extracting digits of a real number with RealDigits produces unexpected result

I have a list of real numbers, each of which has two decimal places. I'm trying to extract the second digit after the decimal point. The function I'm using is ...
1 vote
70 views

### Digits product and an iteration process

I would like to create a code which gives me the square of the product of the digits of a number, with the only rule that if a number has a 0, then it doesn't count in the product (for example, if the ...
74 views

### How to create a function that merges the first $n$-digits of each value in a list?

Suppose we have a list of numbers. For example, A={1231,1232,1233,1241,1236} Using a function f[x,A], I want to rearrange this ...
297 views

141 views

293 views

### Convert real number to IBM 32 Float (not IEEE)

How can I convert real number to IBM 32 Float? I think how to do it with RealDigits[], IntegerDigits[] and ...
1 vote
127 views

### How can I Influence the number of digits when printing a polynomial expression or when I want to make it a String?

I have an expession (it is the result of Fit) but I want to print or display an abbreviated form with all numbers in it rounded to say 6 decimal digits. ...
1 vote
61 views

### Convert numerical solution to RealDigits

It can be determined that Solve[Gamma[x] == 2*Sqrt[Pi], x] yields a solution of x as ...