(LOGO.JPG) Python for OpenVMS

(go to: table of contents, index, list of vms_lib, prev: DELETE_SYMBOL, next: DO_COMMAND)


DIGIT_SEP - Get Digit Separator Symbol


Format:
    digit_separator = vms_lib.digit_sep ()
Returns:
digit_separator
The digit separator symbol as returned by LIB$DIGIT_SEP. The logical name SYS$DIGIT_SEP can be used to define a non-default digit separator symbol.
Arguments:

vms_lib.digit_sep() does not take any arguments.

Examples:

>>> import vms_lib

>>> digit_sep_symbol = vms_lib.digit_sep ()
>>> digit_sep_symbol
','

$ DEFINE SYS$DIGIT_SEP "C&"
>>> vms_lib.digit_sep()
'C&'

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

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

>>> vms_lib.digit_sep (None)
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: DELETE_SYMBOL, next: DO_COMMAND)

30-SEP-1998 ZE.