V2EX  ›  英汉词典

Int

释义 Definition

int:常见于编程语境中,表示 integer(整数) 的缩写,指不带小数部分的数值类型(如 -3、0、42)。在不同编程语言中其取值范围与占用内存可能不同。(也可能在其他领域作缩写使用,但最常见的是“整数类型”。)

发音 Pronunciation

/ɪnt/

例句 Examples

I stored the age as an int.
我把年龄用 int(整数类型)来存储。

If you divide two ints, the result may be truncated depending on the language.
如果你用两个 int 相除,结果在某些语言中可能会被截断(只保留整数部分)。

词源 Etymology

int 来自 integer 的缩写形式。integer 源于拉丁语 integer,意为“完整的、未被分割的”,引申为“没有小数部分的数”,因此在数学与计算机科学中用来表示“整数”。

相关词 Related Words

文学作品 Literary Works

在传统文学作品中,int 作为编程缩写一般不会出现;但在计算机相关写作与技术类书籍中非常常见,例如:

  • The C Programming Language(Kernighan & Ritchie)
  • C Primer Plus(Stephen Prata)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1715 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 35ms · UTC 01:27 · PVG 09:27 · LAX 17:27 · JFK 20:27
♥ Do have faith in what you're doing.