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?
Absolute of Integer Variable
Moderator: Benj
-
- Posts: 28
- Joined: Mon May 26, 2014 8:51 pm
- Has thanked: 4 times
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Absolute of Integer Variable
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.
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.
Martin
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
Re: Absolute of Integer Variable
(moved this Flowcode 6 question to the Flowcode 6 part of the forum)
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis