On Saturday 22 December 2012 08:03:33 andy pugh did opine:

> On 21 December 2012 17:04, Lisandro Massera <[email protected]> 
wrote:
> > Is there any problem using the abs() function in a real time module?
> 
> abs() is an integer function.

Mmmm,  according to my "man 9 abs", its a float.  And the output I see on 
the halmeter is a float.
 
> There is fabs() for floating point. (which is valid in realtime code)

There is a fabs, fabsf, fabsl in linux, man pages are in man3, but it isn't 
part of linuxcnc, from my read of their man pages, its usable in a bash 
script or similar.

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
Green's Law of Debate:
        Anything is possible if you don't know what you're talking about.
I was taught to respect my elders, but its getting 
harder and harder to find any...

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to