Numeric (Real) Expressions
- Last UpdatedOct 05, 2022
- 1 minute read
In expressions, integers are treated as reals; they are fully interchangeable. Numeric expressions can contain:
-
Numbers, for example, 32, 10.1, and so on.
-
Numbers can be given as as integer exponents, for example: 10 exp 5, and 5 E 6.
-
Numbers be qualified by unit names.
-
Attributes of type number, for example: XLEN.
-
Position, direction and orientation attributes which have a subscript to indicate which part of the array is required. For example, POS[2] means the second element of the POSITION attribute; that is, the northing. Note that position, direction and orientation attributes without subscripts can only be used in number array expressions.
-
The keyword PI (3.142).
-
Numeric operators.
-
Numeric functions.