Fix Floating Point issue with Sin and Cos.