> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/python/limit-floating-point-to-two-decimal-places.md).

# Limit Floating Point To Two Decimal Places

We can limit floating points to two decimals in Python as -

```python
>>> "{:.2f}".format(3.145678912345)
'3.15'
```

***Source:*** [***StackOverFlow***](https://stackoverflow.com/a/6539677)
