1. Type Characters
Sometimes it is necessary to add type characters after direct quantities to specify the type. Here are the commonly used type characters.
|Octal number system||Leader & O|
|Hexadecimal||Leader & H|
2. Decimal data type
Decimal data type, which is an accuracy type, is used to represent decimal numbers in programming.
Single, Double is a floating-point decimal is an approximation, and different results may occur on different CPU platforms.
The same is true in databases. Decimal should be used for small number segments, otherwise unexpected results will be obtained.
Most CPU platforms have special methods to deal with floating-point numbers, but they are not specific to Decimal data types, so Decimal is slower to process than floating-point numbers and takes up more space.
3. String data type
The default value of String is Nothing, but VB.NET treats Nothing as an empty string when it compares.
4. Object Data Type
The default value of Object is Nothing, but when an Object variable with a value of Nothing is converted to another base type, Nothing is converted to the default value of the target type.
5. Boolean data type
Boolean can be converted to numerical types, but all transformations are considered contraction transformations.
True is converted to – 1 and False is converted to 0. For the Byte type, True is converted to 255.