# Format

### **Description**‌

The Format function formats x as a string, using the given pattern.&#x20;

### **Syntax**

‌The syntax for the Format function is:

`Format(x, pattern)`

`Format(x, pattern, locale)   // Flow version 6.14.3 and up`

#### ‌**Parameters**

x - the value to format.

pattern -  the format, see [Formats](https://help.novacuraflow.com/development/flowscript/formats).

locale (optional) - a language tag in the format "en-US".

### **Returns**

‌The Format function returns a date, numeric, or string depending on the formatting pattern.

### **Example**‌

Let's look at some Format function examples and explore how to use the Format function.‌

```
Format(0.33333333, "F")
Result: 0.33

Format(0.33333333, "F4");
Result: 0.3333

// Flow 6.14.3
Format(1000, "C", "en-US");
Result: $1.000
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.novacuraflow.com/development/flowscript/functions/number-functions/format.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
