> For the complete documentation index, see [llms.txt](https://otter-1.gitbook.io/pwnhyve/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://otter-1.gitbook.io/pwnhyve/plugin-documentation/creating-your-own-plugin/gui-functions-classes/setfloat.md).

# setFloat

Used to allow the user to set precise floats, editable by each place value.

{% hint style="info" %}
Depreciated - do not use this. Instead, parse floats from the entered text from `enterText()`
{% endhint %}

### Initializing

Same as others, pass the tinyPillow object, aswell as a caption (string)

Select a minimum value and a maximum value, aswell as a starting value using `_min, _max, start`  kwargs, respectively.

```python
setFloat = tpil.gui.setFloat(tpil, "Set Value", _min=10.0, _max=11.5, start="10.5")
```

{% hint style="info" %}
yes i know the start value shouldn't be a string it was 3am

that's another reason why this function is depreciated
{% endhint %}

### Usage

Just use `.start()`. This is a blocking function, so it'll wait till the user is done entering their value.

<pre class="language-python"><code class="lang-python"><strong>userFloat = setFloat.start()
</strong></code></pre>

Returns the float entered by the user.
