INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "EOLE_CURRENCY", "A currency number is stored as an 8-byte, two%'s complement integer, scaled by 10,000 to give a fixed-point number with 15 digits to the left of the decimal point and 4 digits to the right. This representation provides a range of -922,337,203,685,477.5808 to 922,337,203,685,477.5807. The currency data type is extremely useful for calculations involving money, or for any fixed-point calculation where accuracy is particularly important."
project: "Visual Eiffel Library"
revision: "$Revision: 1.2 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: wine
class EOLE_CURRENCY
inherit

EOLE_OBJECT_WITH_POINTER
end
creation

make
feature

make
-- Purpose:
-- Creates an object.
-- Params:
-- None.
-- Return Value:
-- None.
-- Notes:
-- It's a dummy constructor now.

allocate: POINTER
-- Purpose:
-- Allocate the physical memory block of nesessary size
-- (sizeof (CURRENCY)) from memory pool.
-- Params:
-- None
-- Return Value:
-- Pointer to allocated memory block
-- Notes:

set_Lo (lo: INTEGER)
-- Purpose:
-- Set the 'Lo' member of the corresponding
-- C++ structure to the specified value.
-- Params:
-- Lo [in]
-- Value to init the corresponding field of the structure.
-- Return Value:
-- None.
-- Notes:
-- None.

set_Hi (hi: INTEGER)
-- Purpose:
-- Set the 'Hi' member of the corresponding
-- C++ structure to the specified value.
-- Params:
-- Lo [in]
-- Value to init the corresponding field of the structure.
-- Return Value:
-- None.
-- Notes:
-- None.

get_Lo: INTEGER
-- Purpose:
-- Return the value of the 'Lo' member of the
-- corresponding C++ structure.
-- Params:
-- None.
-- Return Value:
-- Value of the 'Lo' member of the
-- corresponding C++ structure.
-- Notes:
-- None.

get_Hi: INTEGER
-- Purpose:
-- Return the value of the 'Hi' member of the
-- corresponding C++ structure.
-- Params:
-- None.
-- Return Value:
-- Value of the 'Hi' member of the
-- corresponding C++ structure.
-- Notes:
-- None.
end -- class EOLE_CURRENCY

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES