mpathma Posted October 28, 2010 Report Share Posted October 28, 2010 Hi, guys, this is my 1st post and also 1st time experience with V570 and VisiLogic 8.6.1 I have to divide two number and to store the result in a MF. Example; ML = 20000 #D = 3600 result is 5.5555 Since now I am using ML, I lost the x.5555 in my application I need to accumulate this reading over time, the x.555 is giving huge error. I wanted to use MF (thinking this will solve the problem), but could not find the MF in the drop menu. Please advice, and thanks in advance. M.Pathma Quote Link to comment Share on other sites More sharing options...
Stein Yair Posted October 28, 2010 Report Share Posted October 28, 2010 All the functions handling floating point numbers can be found under Math >> Float. Quote Link to comment Share on other sites More sharing options...
Damian Posted October 29, 2010 Report Share Posted October 29, 2010 Hi, guys, this is my 1st post and also 1st time experience with V570 and VisiLogic 8.6.1 I have to divide two number and to store the result in a MF. Example; ML = 20000 #D = 3600 result is 5.5555 Since now I am using ML, I lost the x.5555 in my application I need to accumulate this reading over time, the x.555 is giving huge error. I wanted to use MF (thinking this will solve the problem), but could not find the MF in the drop menu. Please advice, and thanks in advance. M.Pathma to keep the precision while still using Long Integers, you could also just multiply the first ML by your precision (ie, 10000) prior to dividing. Quote Link to comment Share on other sites More sharing options...
mpathma Posted November 8, 2010 Author Report Share Posted November 8, 2010 to keep the precision while still using Long Integers, you could also just multiply the first ML by your precision (ie, 10000) prior to dividing. Hi, Found the float function and completed the project. Thanks M.Pathma Quote Link to comment Share on other sites More sharing options...
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.