> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/react-native/math/pi.md).

# pi

## Description

Get the value of pi, which is the ratio of the circumference of a circle to its diameter. The output will return approximately 3.14159.

## Input / Parameter

N/A

## Output

| Description              | Output Type |
| ------------------------ | ----------- |
| Returns the value of pi. | Number      |

## Example

In this example, we will call the `pi` function and print the value in the console.

### Steps

1. Drag a `button` component into the canvas and open the `Action` tab. Select the `press` event of the button and drag the `Log.write` function to the event flow.
2. Call the function `Math.pi` inside the `Log.write` function.

   ![](/files/EwR47j1gnIUj4kQ48Rzx)

### Result

1. The console will print the value of pi.

   ![](/files/rQkv1E4t1qAwUV353WAB)
