Sign in to follow this  
Followers 0
Missteigne

calculation to have the correct integer

3 posts in this topic

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);

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0