Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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_crocker
Member, OS Professional Posts: 866 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:
0
Best Answer
-
shawn_crocker Member, OS Professional Posts: 866 PROI'm an idiot. Its stringToNumber. It looked like in the help that it would remove the decimal places and leave an integer.0
Answers