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.

Convert a string into a decimal

shawn_crockershawn_crocker Member, OS Professional Posts: 423 PRO
I am just finding it so strange that I can't find an answer to this.  I have a string in a variable.  I want to do math on it that requires it to be decimal not a number.  I see the stringToNumber function but just can't seem to figure the same thing but to a decimal.  Anyone?
Tagged:

Best Answer

  • shawn_crockershawn_crocker Member, OS Professional Posts: 423 PRO
    Answer ✓
    I'm an idiot.  Its stringToNumber.  It looked like in the help that it would remove the decimal places and leave an integer.

Answers

  • shawn_crockershawn_crocker Member, OS Professional Posts: 423 PRO
    Answer ✓
    I'm an idiot.  Its stringToNumber.  It looked like in the help that it would remove the decimal places and leave an integer.
Sign In or Register to comment.