How can I set float precision?

I got a way that works every time for me so far. I convert it to text then just chop off the part past the amount of decimal places i want to keep. In this case 2 and use a period as the substring where i count decimal places from.

337668-image-2021-05-01-081507.png