wolfgang Posted December 5, 2016 Share Posted December 5, 2016 Hi, I want to use the rem() function to do a modulo with the power pmac. I include math.h, but the compliler show an error that he doesnt find the function. Which lib i have to include? Link to comment Share on other sites More sharing options...
DaveBarnett Posted December 5, 2016 Share Posted December 5, 2016 You want the % operator...no? Link to comment Share on other sites More sharing options...
wolfgang Posted December 6, 2016 Author Share Posted December 6, 2016 It is "rem", the remainder function, as described in Power PMAC Script Mathematical Feature Specification. it is different from the % operator. Link to comment Share on other sites More sharing options...
wolfgang Posted December 6, 2016 Author Share Posted December 6, 2016 Is it, because I try to use rem in in a background C-task. The command is only available in motion, plc an online!? Link to comment Share on other sites More sharing options...
bradp Posted December 6, 2016 Share Posted December 6, 2016 Yes, it is a PPmac script language function. I do not think you can access it from C-code. Link to comment Share on other sites More sharing options...
bradp Posted December 8, 2016 Share Posted December 8, 2016 You might look at this link for c functions like rem. http://www.gnu.org/software/libc/manual/html_node/Remainder-Functions.html Link to comment Share on other sites More sharing options...
Recommended Posts