# convertPercentToPosition

```lua
return function()
    local app = getApp();
    local position = app.convertPercentToPosition(0.5, 0.5);
    --position.x will be 0 because the center.x of the screen is 0. 
    log(position.x .. ', ' .. position.y); 
end
```

{% hint style="info" %}
x=0 is the left side of the screen, x=1 is the right side.\
y=0 is the bottom of the screen, y=1 is the top.
{% endhint %}


---

# 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://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/classes/app/convertpercenttoposition.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.
