᠎᠎᠎          
51K

Integer digit decrementer

World's simplest integer tool
This browser-based app decreases the value of individual digits in one or more integers. You can subtract a constant amount from all digits at once or use a subtraction pattern that subtracts a different amount from each digit. If a digit becomes less than 0, then you can control the underflow in the options. It can either be cyclically decremented to 9 or you can make it stop decrementing at 0. Created by math nerds from team Browserling.
a new math project! announcement
Love math as much as we do? Then you'll also love our new project – MATHURLS – a super neat math news aggregator. Check it out!
Decrease Control
Enter a value from 0 to 9 that will be subtracted from digits.
Enter a multi-digit value that will be subtracted from the individual digits.
Underflow Control
If the difference becomes less than 0, then continue subtracting from 9.
If the difference becomes less than 0, then stop at 0.

What is a integer digit decrementer?

learn more about this tool
With this web application, you can decrement digits of the given integer. The integer is modified in-place and the data that surrounds it isn't changed. To do its job, the program parses the text that you enter, finds and saves the positions of all integers in it, then decreases the digits in the found integers, and then puts them back in their original positions. There are two options that control how the digits get subtracted – "Decrease All Digits" and "Decrease Individual Digits". The first option subtracts the same value from each digit and you can enter this value below the option. The second option lets you subtract different amounts from the digits. For example, you can decrement only the last digit of an integer or every second digit. This option accepts a subtrahend pattern that specifies the amounts to be subtracted from tens, hundreds, thousands, tens of thousands, and so on. For example, if you enter the integer "987" in the input and set the pattern to "011", you will get "976" in the output (because only ones and tens decrease by 1). There are also two additional radio options that control the digit underflow. In the case when the difference drops below zero, you can leave the difference to be equal to zero by using the "Stop at 0" option or make it cyclically wrap to 9 by using the "Underflow to 9" option. For example, if the input integer is 23 and you subtract 4 from it, then with the first option, you will get the value 00 in the output because both 2-4 and 3-4 are less than 0 so both stop at 0, but with the second option you will get the value 89 in the output because as the differences 2-4 and 3-4 becomes less than 0, they switch from 0 to 9 and the subtraction continues. Integerabulous!

Integer digit decrementer examples

Click to use
Decrease All Digits by One
In this example, we decrease the digits of two integers by 1. The first integer consists only of even digits, therefore subtracting 1 from each digit turns all even digits into odd digits. As we have activated the "Underflow to 9" option, the last digit 0 that is decreased by 1 becomes 9 because of the underflow. The second integer consists only of odd digits, therefore it becomes an integer of even digits in the output.
24680 13579
13579 02468
Required options
These options will be used automatically if you select this example.
Enter a value from 0 to 9 that will be subtracted from digits.
If the difference becomes less than 0, then continue subtracting from 9.
Subtract a Pattern
This example uses a nine-digit subtracting pattern "123456789" that is applied on a bunch of nine-digit integers. With this pattern, the digit at ones position is decreased by 9, the digit at tens position is decreased by 8, the digit at hundreds position is decreased by 3, …, and digit at hundred-millions position is decreased by 1. It also activates the underflow-to-9 option, which controls what happens if the result of subtraction is less than 0.
123456789, 987654321, 999999999, 000000000
000000000, 864208642, 876543210, 987654321
Required options
These options will be used automatically if you select this example.
Enter a multi-digit value that will be subtracted from the individual digits.
If the difference becomes less than 0, then continue subtracting from 9.
Simplify Statistical Data
In this example, we decided to simplify the website traffic statistics and round the last three digits of the number of visitors to zero. To quickly do it, we used a special digit decrement pattern "000999" together with the stop-at-zero option. This option prevents digits from underflowing to 9 and they stay at 0. Thus, in the output, we get rounded integer data with the lower half of the digits zeroed-out.
The scientific website about integers was visited by 365087 kids, 416193 students, and 262139 teachers.
The scientific website about integers was visited by 365000 kids, 416000 students, and 262000 teachers.
Required options
These options will be used automatically if you select this example.
Enter a multi-digit value that will be subtracted from the individual digits.
If the difference becomes less than 0, then stop at 0.
Pro tips Master online integer tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlineintegertools.com/decrement-integer-digits?input=24680%0A13579&underflow-to-nine=true&decrease-all-digits=true&amount=1
All integer tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly rewrite integer digits using pretty Unicode glyphs.
Quickly generate random two-dimensional integer points.
Quickly generate random three-dimensional integer points.
Quickly print a list of integers that are palindromes.
Quickly convert the given integer to a palindromic integer.
Quickly find all integers in the given text or string.
Quickly make integer digits go in a triangle wave.
Quickly unleash the destructive force of Zalgo on integers.
Quickly find two or more integers that add up to the given integer.
Quickly find several integers that multiply up to the given integer.
Quickly randomize the given sequence of integers.
Quickly mix the order of digits in an integer.
Quickly put integers in increasing or decreasing order.
Quickly sort the individual digits of an integer.
Quickly increase all integers by a certain amount.
Quickly increase individual digits by a certain amount.
Quickly decrease all integers by a certain amount.
Quickly decrease individual digits by a certain amount.
Quickly randomly select an integer from a list of integers.
Quickly create groups from the digits of an integer.
Quickly write integer digits backwards.
Quickly remove one or more digits from an integer.
Quickly replace one or more digits in an integer.
Quickly drop digits from an integer and make it shorter.
Quickly add the thousands separator to integers.
Quickly remove the thousands separator from integers.
Quickly find the largest integer in a list of integers.
Quickly find the smallest integer in a list of integers.
Quickly find the total sum of a bunch of integers.
Quickly find the sum of all the digits in an integer.
Quickly find the total product of a bunch of integers.
Quickly find the product of all the digits in an integer.
Quickly calculate the partial sum of a bunch of integers.
Quickly calculate the partial product of a bunch of integers.
Quickly flip the sign of one or more integers.
Quickly split an integer into chunks of a given length.
Quickly merge partial integers together to form a larger integer.
Quickly round integers up or down to the required precision.
Quickly convert integers to a downloadable picture.
Quickly generate a list of von Neumann ordinals.
Quickly generate a list of Zermelo ordinals.
Quickly generate an ordered sequence of integers.
Quickly generate an ordered list of even integers.
Quickly generate an ordered list of odd integers.
Quickly write an integer spelling in words.
Quickly convert spelled integers to regular integers with digits.
Quickly generate an array of integers for programming.
Quickly find the number of occurrences of digits in integers.
Coming soon These integer tools are on the way
Draw von Neumann Universe
Create a drawing that visualizes von Neumann hierarchy of sets.
Generate a Sudoku Board
Create a sudoku puzzle.
Generate Magic Integers
Create a list of neat-looking integers (called magic integers).
Create Integer n-Tuples
Generate a list of tuples of integers with n elements.
Convert Integers to Unary Base
Quickly convert integers to base one.
Convert Unary Base to Integers
Quickly convert base one to integers.
Convert Integers to Binary Base
Quickly convert integers to base two.
Convert Binary Base to Integers
Quickly convert base two to integers.
Convert Integers to Octal Base
Quickly convert integers to base eight.
Convert Octal Base to Integers
Quickly convert base eight to integers.
Convert Integers to Hex Base
Quickly convert integers to base sixteen.
Convert Hex Base to Integers
Quickly convert base sixteen to integers.
Convert Integers to Base64
Quickly encode integers to base-64.
Convert Base64 to Integers
Quickly decode base-64 to integers.
Change Integer Base
Quickly convert integers to a custom base.
Convert Integers to HTML Entities
Quickly encode integers to HTML encoding.
Convert HTML Entities to Integers
Quickly decode HTML entities to integers.
Convert Integers to URL Encoding
Quickly encode integers to URL (percent) encoding.
Convert URL Encoding to Integers
Quickly decode URL-encoded integers.
Convert Signed Integer to Unsigned
Quickly convert a signed integer to an unsigned integer.
Convert Unsigned Integer to Signed
Quickly convert an unsigned integer to a signed integer.
Create Random Integers
Generate a list of random integers.
Check if an Integer is Symmetric
Check if the given integers are palindromes.
Generate an Integer Matrix
Create a matrix whose entries are all integers.
Generate an Integer Vector
Create a vector with integer coefficients.
Find Integer Average
Quickly calculate the average value of integers.
Find Integer Digit Average
Quickly calculate the average value of integer digits.
Pick an Integer Digit
Quickly randomly select a digit from an integer.
Compare Integers
Find which of the given integers is the biggest or smallest.
Clamp Integers
Limit integer values to a range.
Clamp Integer Digits
Limit integer digit values to a range.
Duplicate Integers
Create multiple copies of the input integers.
Duplicate Integer Digits
Create multiple copies of digits of input integers.
Rotate Integers
Rotate the digits of an integer to the left or right.
Shift Integer Digits
Move the digits of an integer to the left or right.
Subtract Integers
Quickly find the difference of a bunch of integers.
AND Integers
Quickly apply the bitwise AND operation to integers.
OR Integers
Quickly apply the bitwise OR operation to integers.
XOR Integers
Quickly apply the bitwise XOR operation to integers.
NOT Integers
Quickly apply the bitwise NOT operation to integers.
NAND Integers
Quickly apply the bitwise NAND operation to integers.
NOR Integers
Quickly apply the bitwise NOR operation to integers.
XNOR Integers
Quickly apply the bitwise NXOR operation to integers.
Divide Integers
Quickly divide two or more integers.
Divide Integer Digits
Quickly divide the digits of an integer.
Convert an Integer to Ordinal
Add -st, -nd, -rd, -th suffixes to integers to make them ordinals.
Convert an Oridinal to Integer
Remove -st, -nd, -rd, -th suffixes from ordinals to make them ints.
Filter Integers
Find integers that match a filter (greater, less, equal).
Left-pad Integers
Add padding to integers on the left side.
Right-pad Integers
Add padding to integers on the right side.
Right-align Integers
Position all integers so that they align on the right.
Center Integers
Position all integers so that they align in the middle.
Take Absolute Value of Integers
Turn all integers into positive integers.
Make All Integers Negative
Turn all integers into negative integers.
Convert Integers to Fractions
Rewrite an integer in fractional form.
Convert Fractions to Integers
Extract the numerator and denominator from a fraction.
Find and Replace Integers
Search for all occurrences of an integer and replace it.
Generate Regex from Integers
Create a regex that matches the given integers.
Generate Integers from a Regex
Create integers that match the given regular expression.
Generate Small Integers
Create relatively tiny integers.
Generate Big Integers
Create relatively huge integers.
Generate Oscillating Integers
Create a sequence of oscillating integers, such as 123212321.
Generate a Multi-integer Sequence
Create multiple integer sequences at once.
Introduce Errors in Integers
Slightly change an integer so it has an error.
Introduce Errors in Integer Digits
Slightly change integer digits so there are errors.
Make Integers Fuzzy
Apply fuzzing to integers and add perturbations.
Make Integers Digits Fuzzy
Apply fuzzing to integer digits and add digit perturbations.
Highlight Integers
Add highlighting to certain integers.
Highlight Integer Digits
Add highlighting to certain integer digits.
Color Integers
Add color to integers based on a condition.
Color Integer Digits
Add color to individual digits in the given integers.
Draw an Integer Spiral
Make the digits of an integer go in a spiral shape.
Draw an Integer Circle
Make the digits of an integer go in a circle.
Draw an Integer Diamond
Make the digits of an integer go in a diamond shape.
Draw an Integer Box
Fill a box with certain width and height with digits.
Create 2D Integers
Use ASCII art to convert integers to 2-dimensional drawings.
Create 3D Integers
Use ASCII art to convert integers to 3-dimensional drawings.
Decompose an Integer
Decompose an integer into ones, tens, hundreds, etc.
Print Increasing Integers
Generate an ordered list of increasing integers.
Print Decreasing Integers
Generate an ordered list of decreasing integers.
Print Integer Information
Quickly find various information about the given integers.
Find Patterns in Integers
Find hidden patterns of numbers in integers.
Calculate Integer Entropy
Find the Shannon entropy of an integer.