> For the complete documentation index, see [llms.txt](https://baezor.gitbook.io/sklib/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://baezor.gitbook.io/sklib/locations/location-to-text.md).

# Location to Text

## Overview and Example

The location to text and text to location functions are used for a better way to store locations. This fixes issues between worlds and other weird issues in skript. You can store locations as text instead of a location variable.

```csharp
sklib_locationToText({_location}, {_world})
```

A commented version of the function is below. The return type for this function is text.

```csharp
# This function returns text.
sklib_locationToText({_location}, {_world})

# You need to input a location and world in this order.
# Location, World
sklib_locationToText({_location}, {_world})

# An example return value is this.
# "123.45^678.9^12.3^world"
```
