Visual Basic 2008 Programming: Business Applications with a Design Perspective
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9
Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Appendix A Appendix B Appendix C Home
Loading
Last change: February 13 2016 18:48:19.

 Chapter in PDF

Table of Contents

Chapter 4: Data, Operations, and Built-In Functions
Last change: February 13 2016 18:47:36.
<<PreviousNext>>

Other Numeric Data Types

In addition to the numeric data types described previously, there are also data types of Decimal and Date. They use 16 and 8 bytes of storage, respectively. The Decimal type can handle 29 significant digits, and you can put the decimal point up to 28 places to the right or left of the number. This data type has the highest precision and is not subject to rounding errors. However, it requires much more storage and is the slowest in computation. Use this data type only if your application cannot tolerate rounding errors.

The Date type uses 8 bytes of storage to handle date/time data. Each unit (recognized as a tick) represents 100 nanoseconds of time beginning from 00:00:00 January 1, 0001. The value of the date such as #12/31/2008# is stored internally in terms of the number of ticks from mid-night of January 1, 0001.

Last change: February 13 2016 18:47:34.
<<PreviousNext>>