I want to use the trigonometric functions of math.h to use 0,1,-1 as sign identifiers for a plane coordinate system.
cos(pi)*length = -1*length
sin(pi)*length = 0
But the functions in math.h requires radian values while I have degree values. Although these can be converted in the formulas I don't know it it will affect the accuracy of the answers i.e. cos(pi) = -0.99999..
Will this affect the operations on my code?
EDIT: What can I do to get my desired results?