V2EX  ›  英汉词典
Enqueued related words: UInt16, Int32, Int64

Int16

释义 Definition

Int16 指“16 位有符号整数”数据类型,常见于编程语言与平台(尤其是 .NET)中;它通常占用 2 字节,取值范围一般为 -32768 到 32767。(在不同语言/平台中也可能写作 shortint16_t 等相关形式。)

发音 Pronunciation (IPA)

/ˌɪnt sɪkˈstiːn/

例句 Examples

I stored the value as an Int16.
我把这个值存成了 Int16 类型。

To reduce memory usage, the program converts the sensor readings to Int16, but it must check for overflow when values exceed the 16-bit range.
为了减少内存占用,程序把传感器读数转换为 Int16,但当数值超过 16 位范围时必须检查是否溢出。

词源 Etymology

Int16 可理解为 int (integer,整数) + 16(16 位) 的组合命名:用数字直接标明该整数类型的位宽。它在 .NET 等体系中常作为类型名(如 System.Int16),与其它位宽类型(如 Int32Int64)形成一套一致的命名方式。

相关词 Related Words

文学与作品示例 Literary Works

  • C# in a Nutshell(书中在讲解数值类型与 System.Int16 等类型时会出现该术语)
  • C# Language Specification(涉及与 CLI/.NET 类型系统对齐时常出现 Int16/System.Int16
  • ECMA-335 Common Language Infrastructure (CLI) 标准文档(在描述 16 位整数及其元数据/类型系统时会出现相关命名)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   930 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 17:48 · PVG 01:48 · LAX 09:48 · JFK 12:48
♥ Do have faith in what you're doing.