Tipe Data Numerik di CSharp

Pada tabel berikut ini akan memberikan sedikit penjelasan singkat kepada Anda tentang tipe data numerik di (CSharp) C#, berkaitan dengan tipe data pada .NET Framework dan nilai yang dapat disimpannya.

Tipe Data C#Tipe Data .NETByteNilai MinimumNilai Maksimum
sbyteSystem.Sbyte1-128127
byteSystem.Byte10255
shortSystem.Int162-32,76832,767
ushortSystem.UInt162065,535
intSystem.Int324-2,147,483,6482,147,483,647
uintSystem.UIn t32404,294,967,295
longSystem.Int648–9,223,372,036,854,775,8089,223,372,036,854,775,807
ulongSystem.UInt648018,446,744,073,709,551,615
charSystem.Char2065,535
floatSystem.Single41.5 x 10-453.4 x 1038
doubleSystem.Double85.0 x 10-3241.7 x 1010308
boolSystem.Boolean1false (0)true (1)
decimalSystem.Decimal161.0 x 10-287.9 x 1028

You May Also Like

sonisitez

About the Author: sonisitez

Jika berusaha sungguh sungguh apapun bisa didapatkan

Leave a Reply

Your email address will not be published. Required fields are marked *