1 year ago
#239703

user8350399
Get Tangent value from a Degree value in Swift
I am trying to calculate the percent from a degree value using Xcode Swift.
For example:
- I have a degree value of 0.2159
- The Tangent value for this degree based off the tangent table is 0.00377
- To find degrees, multiply tangent*100 which makes the percent 0.377%
Now, I can't for the life of me find a library in Xcode or even a package that would do this work for me. The tangent table is huge, so I am looking for a function that would do the conversion from step 1 to step 2 for me.
Thanks so much!
swift
xcode
percentage
degrees
0 Answers
Your Answer