【VB.NET】変数型一覧表

System型名称サイズ範囲
SByteSystem.SByteバイト型(符号あり)8bit-128 ~ 127
ByteSystem.Byteバイト型(符号なし)8bit0 ~ 255
ShortSystem.Int16短整数型(符号あり)16bit-32,768 ~ 32,767
UShortSystem.UInt16短整数型(符号なし)16bit0 ~ 65,535
IntegerSystem.Int32整数型(符号あり)32bit-2,147,483,648 ~ 2,147,483,647
UIntegerSystem.UInt32整数型(符号なし)32bit0 ~ 4,294,967,295
LongSystem.Int64長整数型(符号あり)64bit-9,223,372,036,854,775,808 ~ 9,223,372,036,854,775,807
ULongSystem.UInt64長整数型(符号なし)64bit0 ~ 18,446,744,073,709,551,615
SingleSystem.Single単精度浮動小数点型32bit約 ±1.5×10⁻⁴⁵ ~ ±3.4×10³⁸
DoubleSystem.Double倍精度浮動小数点型64bit約 ±5.0×10⁻³²⁴ ~ ±1.7×10³⁰⁸
DecimalSystem.Decimal10進数型128bit±1.0×10⁻²⁸ ~ ±7.9×10²⁸(28桁精度)
BooleanSystem.Boolean真偽型8bitTrue / False
CharSystem.Char文字型16bitUnicode 0 ~ 65535
StringSystem.String文字列型可変任意の長さの文字列
ObjectSystem.Objectオブジェクト型任意の型を格納可能
よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!
目次