# Constants and `$` names

Names that start with `$` are built in. All of them are constants except `$e`, which holds the error that an error guard caught. Under [`hanzi_aliases`](../syntax.md#hanzi-spellings), each also has a single-character Hanzi spelling.

## `$t` and `$f` — True and false

`$t` (`真`) is true and `$f` (`假`) is false. Comparisons give them. Wherever a number is expected, `$t` is 1 and `$f` is 0. [Booleans](../numbers.md#booleans) has more.

```bpl
3>1 5                ⍝ $t $f
$t+$t                ⍝ 2ₓ
```

## `$n` — NaN

`$n` (`缺`) is the float NaN, the result of an undefined operation such as `∞-∞`. Under [`=`](https://bpl.fast.ai//glyphs/equals.html), `$n` equals no value, not even itself, but `$n≡$n` is `$t`. [Infinities and NaN](../numbers.md#infinities-and-nan) has more.

```bpl
∞-∞                  ⍝ $n
$n=$n                ⍝ $f
```

## `$a` — Alphabet

`$a` (`英`) is the uppercase Latin alphabet.

```bpl
3↑$a               ⍝ "ABC"
$aι"CAB"           ⍝ [2 0 1]ₓ
```

## `$d` — Digits

`$d` (`码`/`碼`) is `"0123456789"`.

```bpl
"a2b"∊$d           ⍝ $f $t $f
```

## `$m` — Machine epsilon

`$m` (`微`) is the gap between 1 and the next float at the session's width: `2*¯52` for 64-bit floats, `2*¯23` for 32-bit floats and `2*¯10` for 16-bit floats. With a [width suffix](../numbers.md#float-widths), as in `$mₛ` or `微ₛ`, `$m` is the gap at that width.

```bpl
$m=2*¯52             ⍝ $t
$mₛ=2*¯23            ⍝ $t
```

A matrix's rank is the number of its singular values above a cutoff. NumPy's cutoff is `$m` times the larger of the matrix's two lengths times the largest singular value:

```bpl
m←[1 2◇2 4◇3 6]
s←(["kind":"svd" "vectors":$f]•decompose m).s
+/s>$m×(⌈/ρm)×⌈/s     ⍝ 1ₓ
```

## `$e` — Caught error

`$e` (`错`/`錯`) is the error that an [error guard](../glyphs/error-guard.md)'s handler caught, as a record. The error guard page lists its fields. Anywhere else, reading `$e` raises a `VALUE` error.
