add some prints to the code using degToStep() to verify the # of steps calculated and the # specified to the driver and visually verify the amount of rotation
Please tell a little bit more about your project. Which board, stepper and driver.
Maybe the MobaTools library is a solution. With MobaTools you can define the target position in degree. The calculation of the needed steps is done by the lib
Im building a 6DOF robot and i already made a lot of custom functions to calculate and set everything up including a pc software interfacing with the arduino etc etc etc and i really dont wanna switch now. also my biggest goal with the project is to do as much myself as possible because i wanna learn things and its fun