V2EX  ›  英汉词典

Decrement

定义 Definition

decrement 是一个名词和动词,意为"减少、递减"。作为名词,指减少的量或递减的过程;作为动词,指将某个值减少(通常减少一个单位)。在计算机编程中尤为常见,表示将变量的值减一。

发音 Pronunciation

/ˈdɛk.rə.mənt/

例句 Examples

The counter will decrement by one each time you press the button.
每按一次按钮,计数器就会递减一。

In the loop, the program decrements the variable until it reaches zero, at which point the function terminates gracefully.
在循环中,程序不断递减该变量直到它变为零,届时函数会正常终止。

词源 Etymology

decrement 源自拉丁语 decrementum,由 decrescere 演变而来,意为"减少、变小"。其中 de- 表示"向下",crescere 表示"生长"。该词在17世纪进入英语,最初用于数学和科学领域,后来在计算机科学中广泛使用,与 increment(递增)相对应。

相关词汇 Related Words

文学与著作引用 Literary References

  • 在 Donald Knuth 的经典著作 The Art of Computer Programming 中,decrement 被大量使用,用于描述算法中变量的递减操作。
  • 在数学与物理学文献中,decrement 常见于描述衰减过程,例如 logarithmic decrement(对数递减率)出现在振动力学的经典教材中。
  • Charles Babbage 在描述其差分机(Difference Engine)的文献中也使用了 decrement 来表示数值的逐步减少。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2556 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 11:38 · PVG 19:38 · LAX 04:38 · JFK 07:38
♥ Do have faith in what you're doing.