# fmt() function

The fmt() function is identical to performing
a FlashBASIC or BASIC mask.

## Syntax

```
fmt(str.exp, mask.exp)
```

## Parameter(s)

| str.exp | Expression to be formatted. |
| --- | --- |
| mask.exp | Formatting (mask) to apply to the str.exp. |
Note: This function requires a nondefault $options setting on the compiler.

## See also

- [$options directive](https://d3codex.com/pickbasic-flashbasic/dollar-options-directive/)
- [BASIC functions](https://d3codex.com/pickbasic-flashbasic/basic-functions/)
- [Masking](https://d3codex.com/pickbasic-flashbasic/masking/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)

---
Source: https://d3codex.com/pickbasic-flashbasic/fmt-function/ - part of the D3Codex reference.
