| 0 | |
57 | |
1.0 | |
0.5438 |
| .303 | |
1.234d6 | |
9E4 | |
3e0 |
The special constant `![]()
BAD
' may also be used and represents a
bad (i.e. undefined) value; any expression containing it
evaluates to the standard Starlink bad value for the data type being
transformed.
At present there is no distinction between the data types of constants, so
the form in which they are written does not matter and their interpretation
depends only on the type of arithmetic in use when the expression is
evaluated.
This, in turn, may depend on the type of data being transformed
(Section
) so constant values are converted
automatically to the data type required.
For instance, a constant written as `2.1' might be interpreted as
integer (2), real (2.1E0), or double precision (2.1D0)
according to the type of arithmetic being used.
N.B. Handling of data types may change in future to allow implicit type conversion and ``mixed mode'' arithmetic. To avoid possible problems, floating-point to integer conversion of constants should currently be avoided if the constant has a fractional part. In practice such cases are rare.
TRANSFORM Coordinate Transformation Facility