LOTUSSCRIPT LANGUAGE


Currency data type
Example

Specifies a variable that contains an 8-byte integer, scaled to four decimal places to suitably represent a monetary value.

Usage

The Currency suffix character for implicit type declaration is @.

Use the Currency data type for calculations with money.

Currency variables are initialized to 0.

The range of Currency values is -922,337,203,685,477.5807 to 922,337,203,685,477.5807, inclusive.

On Unix platforms, the values must fall within the range -922,337,203,685,477.5666 to 922,337,203,685,477.5666, inclusive.

Use the Currency data type for fixed point calculations in which four-decimal-place accuracy is meaningful.

LotusScript aligns Currency data on a 4-byte boundary. In user-defined types, declaring variables in order from highest to lowest alignment boundaries makes the most efficient use of data storage space.

Example
See Also