mpathma Posted October 28, 2010 Report 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
Stein Yair Posted October 28, 2010 Report Posted October 28, 2010 All the functions handling floating point numbers can be found under Math >> Float.
Damian Posted October 29, 2010 Report 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.
mpathma Posted November 8, 2010 Author Report 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now