CAST converts the expression x to the type t using C conversion rules.
|
The supported "C types" are
If x is FLOAT or FIXED DEC, then t must be FLOAT, FIXED or ORDINAL, and if t is FLOAT or FIXED DEC, then x must be FLOAT, FIXED or ORDINAL.
Any conversions that are needed follow the ANSI C rules. This means, for instance, that SIZE will not be raised by CAST and that if negative values are cast to UNSIGNED, then the result will be a large positive number.
IEEE DFP is not supported by CAST.