© National Instruments Corporation
Conversion Function Instantiations
The
RT_FIXED_OPERATORS
that represent conversion of values to and from a fixed-point type. The
appropriate generic function from the
chosen to instantiate the function. The name of the instantiated function
follows a convention that indicates what type of conversion is to be done.
Table 3-10 defines the naming convention for conversion functions.
Table 3-10. Conversion Function Naming Conventions
Conversion Type
Fixed to
RT_INTEGER
Fixed to
RT_INTEGER
Fixed to
RT_INTEGER
Fixed to
RT_LONG_INTEGER
Fixed to
RT_LONG_INTEGER
Fixed to
RT_LONG_INTEGER
Fixed to
RT_BOOLEAN
Fixed to
RT_FLOAT
to Fixed
RT_INTEGER
RT_LONG_INTEGER
to Fixed
RT_BOOLEAN
to Fixed
RT_FLOAT
to Fixed (truncation)
RT_FLOAT
to Fixed (round)
RT_FLOAT
Fixed to Fixed (different types)
Fixed to Fixed (different types, truncation)
Fixed to Fixed (different types, round)
Fixed to Fixed (same type, no-op cast)
1
YY indicates the short name of a fixed-point type xx is the two-digit radix.
Chapter 3
package contains instantiations of functions
SA_FIXED_GENERICS
(truncation)
(round)
(truncation)
(round)
to Fixed
3-27
Ada Language Reference
package is
1
Name
RT_YYxx_I
RT_YYxx_It
RT_YYxx_Ir
RT_YYxx_LI
RT_YYxx_LIt
RT_YYxx_LIr
RT_YYxx_B
RT_FLOAT
RT_YYxx
RT_YYxx
RT_YYxx
RT_YYxx
RT_YYxxt
RT_YYxxr
RT_YYxx
RT_YYxxt
RT_YYxxr
YYxx
AutoCode Reference
Need help?
Do you have a question about the AutoCode NI MATRIX and is the answer not in the manual?