Currency (data type)
Syntax | Currency |
Description | A data type used to declare variables capable of holding fixed-point numbers with 15 digits to the left of the decimal point and 4 digits to the right. |
Comments |
Currency
variables are used to hold numbers within the following range:
Due to their accuracy,
Currency
variables are useful within calculations involving money.
The type-declaration character for
Currency
is
@
.
Storage
Internally, currency values are 8-byte integers scaled by 10000. Thus, when appearing within a structure, currency values require 8 bytes of storage. When used with binary or random files, 8 bytes of storage are required.
|
See Also | Date (data type); Double (data type); Integer (data type); Long (data type); Object (data type); Single (data type); String (data type); Variant (data type); Boolean (data type); DefType (statement); CCur (function). |