Round values to whole numbers in text

So I'm building a project that I want to be fully scalable for the user, and want to display the final output size on a flat surface.
I got this working by making a textbox and adding ""X" ~ toString(#BED_X/mm) ~ "mm"" and this displays the variable as it should.

However, if I scale the project by anything other than 50mm increments, it changes from "xxx mm" to "xxx.xxxxxxxxxxxxxx mm"

Ive chased around my assembly and parts, and theres nothing I can find that would add that value.

Is there a way for me to just round the number in the textbox to not have decimals?

This is my issue

image.png

If I set my frame size to a 50mm increment number, it works just fine

image.png

Answers