V2EX  ›  英汉词典

Modulo

释义 Definition

modulo 常用于数学与计算机领域,表示“模(运算)取模”:在整数除法中只关心余数,例如 a modulo na 除以 n 的余数(通常写作 a mod na % n)。
在较正式的英语里,modulo 也可作介词,表示“在考虑/扣除某因素之后除了……这一点”(相当于 except for / allowing for)。

例句 Examples

7 modulo 3 is 1.
7 对 3 取模等于 1(余数是 1)。

The algorithm updates the index modulo the buffer size to prevent it from exceeding the array bounds.
该算法按缓冲区大小对索引取模,以避免索引超出数组范围。

发音 Pronunciation (IPA)

/ˈmɒdʒʊləʊ/

词源 Etymology

来自拉丁语 modulus(“小尺度/度量单位”),是 modus(“方式、度量、尺度”)的指小形式。进入现代数学语境后,modulo 用来表达“按某个固定尺度(模)来计算/比较”的思想,即在同一个“模”下看作等价(同余)。

相关词 Related Words

文学与典籍出现 Literary Works

  • The Art of Computer Programming(Donald E. Knuth)
  • Introduction to Algorithms(Cormen, Leiserson, Rivest, Stein)
  • Concrete Mathematics(Graham, Knuth, Patashnik)
  • A Course in Number Theory and Cryptography(Neal Koblitz)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2331 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 10ms · UTC 04:11 · PVG 12:11 · LAX 20:11 · JFK 23:11
♥ Do have faith in what you're doing.