Contents > 8 Defining Custom Design Metrics and Rules > 8.5 Expression Terms > 8.5.1 Constants and Identifiers > 8.5.1.1 Constants

#### 8.5.1.1 Constants

Expression terms frequently contain string and number constants.
A string constant is a sequence of characters, enclosed in single
quotes, for example: `'public'`. A string constant may contain
any sequence of digits (0-9), letters (a-z, A-Z), whitespace, and the
underscore (_).

Number constants (integer or floating point) are denoted in the usual way:

- preceded by an optional sign (+ or -)
- always use a dot as decimal point
- if you use scientific notation, separate the exponent from the
mantissa with a 'e' or 'E', like so: -0.234e-5 or 1.2E34

Examples of valid numbers are: 2, -1.3, 1e-10.

Prev |
Up |
Next |

Section 8.5.1 "Constants and Identifiers" | Contents | Section 8.5.1.2 "Identifiers" |