I am trying to set a variable, type double, to a function that calculates distance. This is the code I have.
Quote:
|
dist = 80.0/tan(tilt_angR);
|
If I use a printf statement to calculate and display "dist," the value caclulates and prints properly. However, I need to set this value to a variable. Any help is appreciated.