(LOGO.JPG) Python for OpenVMS

(go to: table of contents, index, list of vms_lib, prev: CREATE_DIR, next: CVTF_FROM_INTERNAL_TIME)


CURRENCY - Get System Currency Symbol


Format:
    currency_string = vms_lib.currency ()
Returns:
currency_string
The value of the logical name 'SYS$CURRENCY' or, if the translation fails the default currency symbol ($).
Arguments:

vms_lib.currency() does not take any arguments.

This interface uses a dynamic string descriptor in the call to LIB$CURRENCY(), so it may raise other exceptions than those which are documented for LIB$CURRENCY().

Examples:

>>> import vms_lib

>>> currency_string = vms_lib.currency()
>>> currency_string
'$'

$ DEFINE SYS$CURRENCY "C&"
>>> vms_lib.currency()
'C&'

* don't forget to use '$ DEASSIGN SYS$CURRENCY' !

>>> vms_lib.currency('S')
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: function requires exactly 0 arguments; 1 given
>>>

(go to: table of contents, index, list of vms_lib, prev: CREATE_DIR, next: CVTF_FROM_INTERNAL_TIME)

30-NOV-1998 ZE.