18.01.2013 Views

Visual Basic 6 Client/Server Programming Gold Book:Table of ...

Visual Basic 6 Client/Server Programming Gold Book:Table of ...

Visual Basic 6 Client/Server Programming Gold Book:Table of ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Brief Full<br />

Advanced<br />

Search<br />

Search Tips<br />

To access the contents, click the chapter and section titles.<br />

<strong>Visual</strong> <strong>Basic</strong> 6 <strong>Client</strong>/<strong>Server</strong> <strong>Programming</strong> <strong>Gold</strong> <strong>Book</strong><br />

(Publisher: The Coriolis Group)<br />

Author(s): Michael MacDonald and Kurt Cagle<br />

ISBN: 1576102823<br />

Publication Date: 10/01/98<br />

Search this book:<br />

Numeric Data<br />

Previous <strong>Table</strong> <strong>of</strong> Contents Next<br />

Unlike character data, numeric data can take many forms and vary more from<br />

RDBMS to RDBMS than other data types. In general, you will run into the<br />

following data types (refer to your vendor’s documentation for any specifics or<br />

differences in implementation):<br />

• NUMERIC (S, P)—S stands for scope and P stands for precision.<br />

Scope refers to how many digits the number is allowed to hold, and<br />

precision refers to how many <strong>of</strong> those numbers are to the right <strong>of</strong> the<br />

decimal place, as in the following example:<br />

Ord_Amount NUMERIC (11,2)<br />

In this example, the largest number that can be stored is 999,999,999.99.<br />

Even if your number has no digits to the right <strong>of</strong> the decimal place, you<br />

can use only nine to the left <strong>of</strong> the decimal point. Thus, a column<br />

defined as NUMERIC (4,4) can be no larger than 0.9999.<br />

• INTEGER is a data type that holds a whole number from –32,768 to<br />

+32,767. An UNSIGNED INTEGER is capable <strong>of</strong> holding positive<br />

whole numbers from 0 to 65,536.<br />

• LONG numbers can be any whole number <strong>of</strong> approximately negative<br />

2.1 billion to positive 2.1 billion. As with the INTEGER data type, your<br />

database may also support an unsigned variation, UNSIGNED LONG,<br />

which holds a positive whole number <strong>of</strong> 0 to approximately 4.2 billion.<br />

• FLOATING POINT, SINGLE, SINGLE PRECISION, DOUBLE,<br />

and DOUBLE PRECISION are all variations on floating-point<br />

numbers. A floating-point number can handle either real numbers or<br />

irrational numbers (as well as whole numbers, <strong>of</strong> course). A real number<br />

is any number that can be represented in a fixed number <strong>of</strong> decimal

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!