(LOGO.JPG) Python for OpenVMS

(go to: table of contents, index, list of vms_lib, prev: PUT_OUTPUT, next: RENAME_FILE)


RADIX_POINT - Radix Point Symbol


Format:
    radix_point_string = vms_lib.radix_point ()
Returns:
radix_point_string
The system's radix point symbol that is used inside a digit string to separate the integer part from the fraction part. The logical name SYS$RADIX_POINT can be used to define a non-default radix point symbol.
Arguments:

vms_lib.radix_point() does not take any arguments.

Examples:

>>> import vms_lib

>>> radix_point_string = vms_lib.radix_point ()
>>> radix_point_string
'.'

$ DEFINE SYS$RADIX_POINT ","
>>> vms_lib.radix_point ()
','

$ DEFINE SYS$RADIX_POINT "XYZ"
>>> vms_lib.radix_point ()
'XYZ'

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

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

>>> vms_lib.radix_point (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: PUT_OUTPUT, next: RENAME_FILE)

30-SEP-1998 ZE.