Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

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

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

Answers

Sign In or Register to comment.