C # Data types

Source: Internet
Author: User

1. Integer type: int can only store certificates and cannot store decimals.

2. Decimal type: Doubie functions store integers, and can store decimals, 15-16 digits after the decimal point.

3. Money type: decimal: Used to store money, the value behind the need for home a m.

4. String type: string is used to store more than one text, can also be stored empty, String type value needs to be quoted in double quotation marks

This double quote must be a double quote in the English half-angle state

5. String type: Char is used to store the character, at most, at least one character, cannot be stored empty.

The value of the character type needs to be enclosed in single quotation marks because of the single quotation mark in the English half-width state.

C # Data types

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.