.. highlightlang:: us .. index:: XYSetDataType .. _xysetdatatype: XYSetDataType ============= .. us.tag XYSetDataType ENGLISH xy.data New5305 :ref:`XYSetDataType` sets the data type for 1D and 2D datasets saved in the UniPlot document (.ipw). .. function:: bool = XYSetDataType(hData, nDataType) .. us.return **Return Value** *bool* is TRUE (1), if the function was successful and otherwise FALSE (0). .. us.params **Parameters** .. uparam:: hData The handle of a dataset created with :ref:`XYCreate` or :ref:`TYCreate`. .. uparam:: nDataType *nDataType* is one of the following values: .. list-table:: :header-rows: 1 * - Value - Description * - DATATYPE_FLOAT64 (10) - 64-Bit floating-point number. * - DATATYPE_FLOAT32 (9) - 32-Bit floating-point number. .. us.comment **Comment** If the dataset already contains data the data type will be saved and applied when new data is set with :ref:`XYSetData`. .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.30.5 - New .. seealso:: :ref:`overview-xy-datasets`, :ref:`XYCreate`, :ref:`XYSetData`, :ref:`TYCreate`, :ref:`XYGetDataType`, :ref:`AppSetDatasetDataType` :sub:`id-725717`