Siebel VB Language Reference > Language Overview > Data Types >

Numbers


Table 5 shows the numeric types.

Table 5.  Numeric Types
Type
Description
From
To
Integer
2-byte integer
-32,768
32,767
Long
4-byte integer
-2,147,483,648
2,147,483,647
Single
4-byte floating-point number
-3.402823e+38
0.0,
1.401298e-45
-1.401298e-45,

3.402823466e+38
Double
8-byte floating-point number
-1.797693134862315d+308,
0.0,
2.2250738585072014d-308
-4.94065645841247d-308,

1.797693134862315d+308
Currency
8-byte number with a fixed decimal point
-922,337,203,685,477.5808
922,337,203,685,477.5807

Numeric values are always signed.

Siebel VB has no true Boolean variables. Basic considers 0 to be FALSE and any other numeric value to be TRUE. Only numeric values can be used as Booleans. Comparison operator expressions always return 0 for FALSE and -1 for TRUE.

Integer constants can be expressed in decimal, octal, or hexadecimal notation. Decimal constants are expressed by simply using the decimal representation. To represent an octal value, precede the constant with &O or &o (for example, &o177). To represent a hexadecimal value, precede the constant with &H or &h (for example, &H8001).


 Siebel VB Language Reference
 Published: 18 June 2003