In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what data types VB.NET has, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
VB.NET data type
There are 12 different data types in VB.NET, which can be divided into three categories: numeric type, text type, and mixed type. Numeric types are the main types of VB.NET data types, with a total of 7. The data types of numeric types are shown in the table below.
Data type
Mode of representation
Take value norm circumference
Make it clear
Integer type
Integer
-21474836481147483647
Used to represent simple integers
Byte type
Byte
08255
Used for simple arithmetic operations. Since this type of variable can be stored in one byte, the operation is the fastest.
Short integer type
Short
-32768mm 32767
Is a form of integer with a relatively small range of representation
Long integer type
Long
-9223372036854775808 ~
9223372036854775807
It is a form of integer and has a relatively wide range of representation.
Single essence
Degree type
Single
-3.402823E38~-1.401298E-45 (for negative numbers) and 1.401298E-45~3.402823E38 (for positive numbers)
Used to store single-precision floating point numbers
Double essence
Degree type
Double
-1.79869313486232E308~
-4.94065645841247E-324 (for negative numbers)
And 4.94065645841247E muri 324~
1.79869313486232E308 (for positive numbers)
Used to store double-precision floating point numbers
Decimal number
Decimal
When the decimal place is 0,
-79228162514264337593543950335 ~
79228162514264337593543950335
When the decimal place is 28,
-7.9228162514264337593543950335 ~
7.9228162514264337593543950335
Often used to store monetary values
Data type of numeric type
There are two data types for storing text. The VB.NET data type of the text type is shown in the following table.
Data type
Table formula
State clearly
String type
String
Used to store any form of string, including one character or multiple lines of characters
Character type
Char
Used to store a character that is stored as a number between 0mm 65535
Data type of text type
What needs to be explained is:
(1) for String type, you can store any form of string, which can be pure text, a combination of text and numbers, numbers, dates, and so on. For example, "This is a book." and "12345" are strings. For string type data, you can perform related string operations, such as concatenation, truncation, and so on.
(2) for the Char type, only one character can be stored. Note that the storage code for this character must be a number. In a computer system, many symbols can be displayed (not just the English alphabet). In order to display correctly, there are international standards (such as Unicode coding) that set a standard value for each character to represent the character. The remaining data types include the Date data type, the Boolean data type, and the Object data type, as described in the table below.
Data type
Table formula
State clearly
Date type
Date
Must be expressed in mm/dd/yyyy format, or you can store time (can store any time between 0015, 0012, 23, 23, 59 and 59)
Boolean type
Boolean
Values are True and False
Object type
Object
Other data types
It should be noted that in VB.NET, for data of type Boolean, when the value of Boolean type needs to be converted to a numerical type, True will be treated as 1 and False as 0. When you need to convert a value of the VB.NET numeric type to a Boolean type, it converts 0 to False and other non-zero values to True.
The above is all the content of the article "what are the data types of VB.NET". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.