# \[Solved\] How to round floats? (0.234378996=0.23)

**URL:** <https://forums.unrealengine.com/t/solved-how-to-round-floats-0-234378996-0-23/144299>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [May 24, 2020, 4:29am UTC](https://forums.unrealengine.com/t/solved-how-to-round-floats-0-234378996-0-23/144299 "2020-05-24T04:29:58Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![pezzott1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pezzott1/32/1215068_2.png) [@pezzott1](https://forums.unrealengine.com/u/pezzott1)\
**Post date:** [May 6, 2024, 8:17pm UTC](https://forums.unrealengine.com/t/solved-how-to-round-floats-0-234378996-0-23/144299/22 "2024-05-06T20:17:49Z")

</div>

> [@MaverickHter](#):
>
> ![imagem_2024-05-05_181024075](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/d/add0b904ead6d314d3035e2a79bcb96226b75c0e.png)
> 
> imagem\_2024-05-05\_1810240751174×422 96.9 KB

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/f/96fba1ebd6febecc46c3fe08d5595472a6f85ab6.png)

---

<div class="post-metadata">

**Author:** ![StBlueFire](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stbluefire/32/641418_2.png) [@StBlueFire](https://forums.unrealengine.com/u/StBlueFire)\
**Post date:** [July 8, 2024, 11:38pm UTC](https://forums.unrealengine.com/t/solved-how-to-round-floats-0-234378996-0-23/144299/23 "2024-07-08T23:38:11Z")

</div>

A useful function that you can drop in a BPFL.

[https://dev.epicgames.com/community/snippets/EK8a/unreal-engine-round-to-decimal](https://dev.epicgames.com/community/snippets/EK8a/unreal-engine-round-to-decimal)

---

<div class="post-metadata">

**Author:** ![Anthony\_Attwood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anthony\_Attwood](https://forums.unrealengine.com/u/Anthony_Attwood)\
**Post date:** [April 27, 2025, 5:45pm UTC](https://forums.unrealengine.com/t/solved-how-to-round-floats-0-234378996-0-23/144299/24 "2025-04-27T17:45:26Z")

</div>

lmao I don’t know how I missed this beautiful solution. I’ve been using to text nodes all over and didn’t realise the dropdown bit hahaha

---

<div class="post-metadata">

**Author:** ![StephenSchieber](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StephenSchieber](https://forums.unrealengine.com/u/StephenSchieber)\
**Post date:** [January 6, 2026, 9:53pm UTC](https://forums.unrealengine.com/t/solved-how-to-round-floats-0-234378996-0-23/144299/25 "2026-01-06T21:53:06Z")

</div>

For anyone still wondering. Multiply by 100 (or however many digits you need), round, then mod by the same amount for the right side of the decimal, and divide your rounded integer for the left side.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/3/b43b9dc3e6dae74fdbdb37ed0f1f59e873c66223.png)

[Previous page](https://forums.unrealengine.com/t/solved-how-to-round-floats-0-234378996-0-23/144299.md?page=1)
