Meaning & use
decremented
Last updated
“decremented” is a form of “decrement”. See that entry for the full set of meanings.
Meaning
verbtransitive
Reduced a numerical value or counter by a fixed amount, usually by one.
Grammar: Transitive; takes an object like 'the value' or 'the counter'. Often used in the passive.
Patterns
- decrement something
- decrement something by something
- be decremented
The program decremented the counter each time the loop ran.
After each purchase, the inventory was decremented by one.
He decremented the variable to zero before stopping the simulation.
Word forms
| base form | decrement |
|---|---|
| third person singular | decrements |
| past tense | decremented |
| past participle | decremented |
| -ing form | decrementing |
Common combinations
- decrement a variable
- You can decrement a variable in a loop to control repetitions.
- decrement by one
- The function decrements the score by one for each wrong answer.
- decrement the counter
- The timer decrements the counter every second.
- automatically decremented
- The stock level is automatically decremented when an order is placed.
Synonyms and how they differ
- reduce
- Reduce is a general word for making something smaller; decrement is specific to numerical values and often used in programming.
- decrease
- Decrease can be transitive or intransitive and is more general; decrement is usually transitive and technical.
- subtract
- Subtract means to take one number away from another; decrement often means reducing by a fixed amount, typically one.
Opposites
Word family
Commonly confused: decremented or decremented vs. incremented?
decremented vs decremented vs. incremented
These are opposites. 'Decremented' means reduced, usually by one; 'incremented' means increased, usually by one. In code, 'i--' decrements, 'i++' increments.
Practice
Fill in the blank: 'The loop ran five times and ___ the counter by one each time.'
Choose one answer.
'Decremented' is the past tense that matches the past tense 'ran' and means reduced by one. 'Incremented' means increased, which is the opposite. 'Decrementing' is a participle and would need a helping verb. 'Decrement' is the base form and doesn't fit the past tense.
Make it your own
Write a sentence using “decremented”, then check it and compare it with the examples above.