# Val

### **Description**‌

The Val function changes the string variable x into a numeric value. This is rarely necessary as Flow automatically coerces string values into a numeric value.

### **Syntax**

‌The syntax for the Val function is:

`Val(x)`

#### ‌**Parameters**

x - the numeric value which is to be changed into a string.

### **Returns**

‌The Val function returns a numeric value.

### **Example**‌

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

```
Val(7)
Result: 7
```


---

# 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/val.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.
