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.

Rounding function(s) force round up or round down

Ben_Ben_ OS Professional, Mentor, Developers Posts: 281 PRO
Is there a rounding function or operator that will force the rounding to round up or round down to nearest integer? 


  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 979
    floor rounds down and ceil rounds up.  Make sure that what you're passing is in fact an integer, not a length -- for lengths use something like floor(#myLength / in) * in to round down to the nearest inch.
    Ilya Baran \ Director, Architecture and FeatureScript \ Onshape Inc
  • Ben_Ben_ OS Professional, Mentor, Developers Posts: 281 PRO
Sign In or Register to comment.