Skip to content

How to convert a string to an angle? #887

Closed Answered by PgBiel
ttmc asked this question in Q&A
Discussion options

You must be logged in to vote

You can use eval("10deg"), or parse the string by yourself with regex to get the number and multiply by 1deg.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ttmc
Comment options

You must be logged in to vote
1 reply
@Enivex
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants