Sannin Posted October 24, 2023 Report Posted October 24, 2023 (edited) Good morning everyone, I'm having difficulty using the "sin" and "cos" functions in sysmac, in particular the results of the functions are not correct, for example if I convert 180° into radians, with the result 3.14159 and then I do "sin", the result is -8.7422777e-08 when it should be 0. Could anyone tell me how to solve the problem? Thank you all Edited October 24, 2023 by Sannin Quote
realisator Posted October 24, 2023 Report Posted October 24, 2023 Hi, The value is almost 0 ( 3.14159 is just approximation of PI) If there's a "." at the end of monitored value that means that this value is not all displayed. Quote
Sannin Posted October 24, 2023 Author Report Posted October 24, 2023 (edited) In the end I use the LREAL as a format to get the result even closer to zero. A thousand thanks Edited October 24, 2023 by Sannin Quote
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.
Note: Your post will require moderator approval before it will be visible.