kenemon 29 Posted April 16, 2011 Share Posted April 16, 2011 Hi All, I am working on a program for the MSP430 which requires a little bit of trig math. How do I get CCS happy with using the SQRT() function? Has anyone had success with this? Thanks Quote Link to post Share on other sites
kenemon 29 Posted April 16, 2011 Author Share Posted April 16, 2011 That was a perfect C+ for idiots reference question, sorry to waste your time. Now I just need to figure out how to format the output of the sqrt() function. I need it to be an integer. Thanks for reading Quote Link to post Share on other sites
bluehash 1,580 Posted April 17, 2011 Share Posted April 17, 2011 Can you typecast it? You will loose out some of the lower bits though. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.