Method ao/cast


  CAST - converts the numeric values in an AO to the data type specified by type.
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
  DESCRIPTION: CAST - converts the numeric values in an AO to the data type
               specified by type. The input for the parameter 'type' is a
               string and can be set to one of the following:
               'uint8',  'int8',
               'uint16', 'int16',
               'uint32', 'int32',
               'uint64', 'int64',
               'single', or 'double'
               This conversion is applied by default to the y-axis but can
               be changed by the user by using the 'axis' parameter.
 
  CALL:        b = cast(a, pl)
               b = cast(a, 'int32')
 
  Parameters Description
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details
Access public
Defining Class ao
Sealed 0
Static 0

Parameter Description

Default

no description
Key Default Value Options Description
cast
TYPE, DATA TYPE, PRECISION 'double'
  • 'uint8'
  • 'int8'
  • 'uint16'
  • 'int16'
  • 'uint32'
  • 'int32'
  • 'uint64'
  • 'int64'
  • 'single'
  • 'double'
New data type for the numeric values in the AO.
AXIS 'y'
  • 'x'
  • 'y'
  • 'z'
  • 'xyz'
The axis on which to apply the method.

Example

plist('TYPE', 'double', 'AXIS', 'y')

back to top back to top

Some information of the method ao/cast are listed below:
Class name ao
Method name cast
Category Converter
Package name ltpda
VCS Version 967b0eec0dece803a81af8ef54ad2f8c784b20b2
Min input args 1
Max input args -1
Min output args 1
Max output args -1
Can be used as modifier 1
Supported numeric types {'double'}




©LTP Team