EmbDev.net

Forum: ARM programming with GCC/GNU tools Error in double type ?


von Jakub (Guest)


Rate this post
useful
not useful
Hi :)
I'm writting a program for DFT in WinAVR. Unfortunately something is
wrong. Long time I was looking for a mistake and my opinion is that
compiler works bad.
Results of: int((-741.77)*sin((2*3.1415*17*1)/30)) is 31, but it will be
301.
Why ?

von Jakub (Guest)


Rate this post
useful
not useful
No comments. It was a error in my class for sending data to PC. I'm
sorry :(

von Clifford S. (clifford)


Rate this post
useful
not useful
Jakub wrote:
> No comments. It was a error in my class for sending data to PC. I'm
> sorry :(

And you posted to the wrong forum! ;-)

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.