Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the VB.NET data types

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you what VB.NET data types are, 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!

As a new programming platform launched by Microsoft, VB.NET has a lot of performance features to be found in the actual programming area. There are a total of 12 VB.NET data types, which can be divided into three categories: numeric types, text types, and mixed types.

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 Table 2-1.

Table 2-1 VB.NET data types for numeric types

Data type

Mode of representation

Take value norm circumference

State clearly

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

There are two data types for storing text. The data types of text types are shown in Table 2-2.

Table 2-2 VB.NET data types for text types

What needs to be stated in the VB.NET data type is:

Detailed explanation of concepts related to the usage of VB.NET Hashtable

Overview of VB.NET Keyboard events

Experience sharing in VB.NET regular expression Application

VB.NET reads XML files to realize skill sharing

A brief introduction to the concept of VB.NET Array assignment

(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 other data types are Date data type, Boolean data type, and Object data type, which are described in Table 2-3.

Table 2-3 other VB.NET data types

It should be noted that: in the VB.NET data type, for the data of Boolean type, when you need to convert the value of Boolean type to numeric type, True will be treated as 1 and False as 0. When you need to convert a value of a 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 VB.NET data types?" 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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report