Missteigne Posted November 29, 2013 Report Posted November 29, 2013 Is it possible for tau wich is an INT to receive the correct integer part of the next affectation ? t1 and t2 are of course integer too ? tau:= (2.8*t1)-(1.8*t2);
PLCRune Posted November 29, 2013 Report Posted November 29, 2013 You cannot use disimal values in a INT variable. So either you can redifine to real or you have to du like tau:= ((28*t1)-(18*t2))/10; This depends of your value not beeing to high.. It is also possible to use a command innside your math like Int_To_real and Real_to_Int.
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