Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rem
#1
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?
Reply
#2
You want the % operator...no?
Reply
#3
It is "rem", the remainder function, as described in Power PMAC Script Mathematical Feature Specification.
it is different from the % operator.
Reply
#4
Is it, because I try to use rem in in a background C-task. The command is only available in motion, plc an online!?
Reply
#5
Yes, it is a PPmac script language function. I do not think you can access it from C-code.
Reply
#6
You might look at this link for c functions like rem.

http://www.gnu.org/software/libc/manual/...tions.html
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)