4 Constants
The following mathematical and logical constants are available:
| Constant | Value |
|---|---|
| E | Euler’s number (2.71828182845904523536) |
| NAN | NaN (Not-a-Number) |
| PI | pi (3.14159265358979323846) |
If TE_FLOAT is defined, then some precision for pi and Euler’s number will be lost.
| Constant | Value |
|---|---|
| TRUE | 1 |
| FALSE | 0 |
The following number formats are supported:
| Format | Example |
|---|---|
| Decimal | 5754615 or 3.14 |
| Hexadecimal | 0x57CEF7, which yields 5754615 |
| Scientific notation | 1e3, which yields 1000 |