Digit
Extract strings containing digits only.
App usage
Example
# INPUT TEXT
// From https://www.calculators.tech/knowledge/examples-of-decimal-numbers
Examples of decimal numbers
We can interpret any decimal number by using the following method. Suppose we have a decimal number 1234.
\(1234 = 1 \times 10^3 + 2 \times 10^2 + 3 \times 10^1 + 4 \times 10^0\)
\(= 1000 + 200 + 30 + 4\)
\(= 1234\)
The right-sided digits are least significant, and the left-sided digits are more significant because power increases by one for every next digit from left to right to left.
Let’s interpret a floating number in decimal number system. Assume a number 1234.56.
\(1234.56 = 1 \times 10^3 + 2 \times 10^2 + 3 \times 10^1 + 4 \times 10^0 + 5 \times10^{-1} + 6 \times 10^{-2}\)
\(= 1000 + 200 + 30 + 4 + 0.5 + 0.06\)
\(= 1234.56\)
Here, the most important bit is 1 and the least significant bit is 6.
# RESULT
[
"0",
"06",
"1",
"10",
"1000",
"1234",
"2",
"200",
"3",
"30",
"4",
"5",
"56",
"6"
]
API usage
You can find all required parameters and multi-language examples on our RapidAPI page.