why does a sine of 45 deg not work like normal
What do you mean by "the normal"?
You should get 1/sqrt(2)=0.7071067..........etc.