Page 1 of 1
Absolute of Integer Variable
Posted: Thu Sep 11, 2014 9:18 pm
by ahmedkhalid
Hello!
Can Anyone tell me how to take absolute of an integer variable? Is there any built-in function/command in flowcode v6 for such task?
Re: Absolute of Integer Variable
Posted: Thu Sep 11, 2014 10:18 pm
by medelec35
Hi ahmedkhalid,
Although absolute function is available:
It will be used with float variables which are not handled well at all in 8 bit pics especially with the default built in boostc compiler (there are plans to change to a different compiler

)
So as a simple solution using integer how about:
?
I hope I have got it right as my maths skills are not the best.
Re: Absolute of Integer Variable
Posted: Thu Sep 11, 2014 10:56 pm
by kersing
(moved this Flowcode 6 question to the Flowcode 6 part of the forum)