Delta Tau Forums

Full Version: rem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
You want the %
It is "rem", the remainder function, as described in Power PMAC Script Mathematical Feature Specification.
it is different from the % operator.
Is it, because I try to use rem in in a background C-task. The command is only available in motion, plc an online!?
Yes, it is a PPmac script language function. I do not think you can access it from C-code.
You might look at this link for c functions like rem.