usingsystem;
using
system.collections.concurrent;
using
system.collections.generic;
using
system.io;
using
system.linq;
using
system.text;
using
system.threading.tasks;
namespace
static
void
printvaluetyperange()
", int.maxvalue, int
.minvalue);
console.writeline(
"uint 型別的最大值是:
", uint.maxvalue, uint
.minvalue);
console.writeline(
"byte 型別的最大值是:
", byte.maxvalue, byte
.minvalue);
console.writeline(
"sbyte 型別的最大值是:
", sbyte.maxvalue, sbyte
.minvalue);
console.writeline(
"short 型別的最大值是:
", short.maxvalue, short
.minvalue);
console.writeline(
"ushort 型別的最大值是:
", ushort.maxvalue, ushort
.minvalue);
console.writeline(
"long 型別的最大值是:
", long.maxvalue, long
.minvalue);
console.writeline(
"ulong 型別的最大值是:
", ulong.maxvalue, ulong
.minvalue);
console.writeline(
"float 型別的最大值是:
", float.maxvalue, float
.minvalue);
console.writeline(
"double 型別的最大值是:
", double.maxvalue, double
.minvalue);
console.writeline(
"decimal 型別的最大值是:
", decimal.maxvalue, decimal
.minvalue);
console.writeline(
"int 型別的最小值是:
", int
.minvalue);
console.writeline(
"uint 型別的最小值是:
", uint
.minvalue);
console.writeline(
"byte 型別的最小值是:
", byte
.minvalue);
console.writeline(
"sbyte 型別的最小值是:
", sbyte
.minvalue);
console.writeline(
"short 型別的最小值是:
", short
.minvalue);
console.writeline(
"ushort 型別的最小值是:
", ushort
.minvalue);
console.writeline(
"long 型別的最小值是:
", long
.minvalue);
console.writeline(
"ulong 型別的最小值是:
", ulong
.minvalue);
console.writeline(
"float 型別的最小值是:
", float
.minvalue);
console.writeline(
"double 型別的最小值是:
", double
.minvalue);
console.writeline(
"decimal 型別的最小值是:
", decimal
.minvalue);
console.readkey();}}
}
執行結果如下:
int 型別的最大值是:2147483647
uint 型別的最大值是:4294967295
byte 型別的最大值是:255
sbyte 型別的最大值是:127
short 型別的最大值是:32767
ushort 型別的最大值是:65535
long 型別的最大值是:9223372036854775807
ulong 型別的最大值是:18446744073709551615
float 型別的最大值是:3.402823e+38
double 型別的最大值是:1.79769313486232e+308
decimal 型別的最大值是:79228162514264337593543950335
int 型別的最小值是:-2147483648
uint 型別的最小值是:0
byte 型別的最小值是:0
sbyte 型別的最小值是:-128
short 型別的最小值是:-32768
ushort 型別的最小值是:0
long 型別的最小值是:-9223372036854775808
ulong 型別的最小值是:0
float 型別的最小值是:-3.402823e+38
double 型別的最小值是:-1.79769313486232e+308
decimal 型別的最小值是:-79228162514264337593543950335
C 各種資料型別的最大值和最小值常數
using system using system.collections.generic using system.linq using system.text namespace typemaxminvalue static void printdatarange 最小值 int.maxvalu...
mysql 資料型別 (最大值 和 最小值)
1 整型 mysql資料型別含義 有符號 tinyint m 1個位元組 範圍 128 127 smallint m 2個位元組 範圍 32768 32767 mediumint m 3個位元組 範圍 8388608 8388607 int m 4個位元組 範圍 2147483648 2147483...
mysql 資料型別 (最大值 和 最小值)
原文 1 整型 mysql資料型別 含義 有符號 tinyint m 1個位元組 範圍 128 127 smallint m 2個位元組 範圍 32768 32767 mediumint m 3個位元組 範圍 8388608 8388607 int m 4個位元組 範圍 2147483648 214...