C # data types and ranges

Source: Internet
Author: User
Tags ranges time and date

C # data types and ranges

Data type

Range/Accuracy

 

value

class

float

dot

small floating point float

1.5x10-45~3.4x1038

7-bit precision

Medium floating point Double

5.0x10-324~1.7x10308

15-bit accuracy

Large floating-point Decimal

1.0x10-28~7.9x1028

28-bit accuracy

integer

common integer int -2 147 483 648~2 147 483 647
Long integer type Long

-9 223 372 036 854 775 808

~

9 223 372 036 854 775 807

Small integer type Byle 0~255
Medium integral type Short -32 768~32 767
Boolean type

Right-wrong type

bool
True/false
Character type

Single character

Char u+0000 ~ u+ffff
Reference type String String
Time and date Datetime

C # data types and ranges

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.