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.

Options

Math operators don't work as expected.

RagwingRagwing Member Posts: 6 ✭✭
edited June 2 in Community Support
Why does addition work but multiplication not?

Gotta be something simple...

Thanks,

Answers

  • Options
    S1monS1mon Member Posts: 2,497 PRO
    They are working correctly. A and B are values with units. A*B would equal 12 in^2, which isn’t a length. You can either divide by “in” or use the “any” category, depending on your goals.
  • Options
    romeograhamromeograham Member, csevp Posts: 664 PRO
    edited June 2
    I think it is because the result of multiplication gives an Area unit (in^2), not a Length unit. See if it works if you change the type to "Any" rather than "Length".
  • Options
    RagwingRagwing Member Posts: 6 ✭✭
    Thank you! That pointed me in the right direction. Just learning about OS arithmetic. In my application, one of the variables is actually dimensionless. Changing to "any" resulted in the correct outcome.
    Much appreciated!
  • Options
    S1monS1mon Member Posts: 2,497 PRO
    If the variable is dimensionless, but it’s a real number (maybe a quantity or ratio), you should use the “number” option. “Any” is for any type which can’t fit in the first three choices.
Sign In or Register to comment.