- Posts: 199
- Thank you received: 0
MOD operator
- RobotMatic
- Topic Author
- Offline
- Elite Member
-
Less
More
6 years 5 months ago #166659
by RobotMatic
MOD operator was created by RobotMatic
HI
I need to perform a division / and evaluate the resulting module (mod). I can't get the expression right. and I can't find an example. Can someone help me with this ?. Thank you!!!
O113 IF [#<_longuitud_z>/#<_pasada_z> MOD EQ 0 ]
(MSG,"#######")
O113 ENDIF
I need to perform a division / and evaluate the resulting module (mod). I can't get the expression right. and I can't find an example. Can someone help me with this ?. Thank you!!!
O113 IF [#<_longuitud_z>/#<_pasada_z> MOD EQ 0 ]
(MSG,"#######")
O113 ENDIF
Please Log in to join the conversation.
6 years 5 months ago #166693
by MaHa
Replied by MaHa on topic MOD operator
MOD finds the remainder of a division,so your example needs a divisor. Then the leftover of [#<_longuitud_z>/#<_pasada_z>] / #<_divisor> is compared with 0
Code:
O113 IF [[[#<_longuitud_z>/#<_pasada_z>] MOD #<_divisor>] EQ 0]
(MSG,"#######")
O113 ENDIF
Please Log in to join the conversation.
- RobotMatic
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 199
- Thank you received: 0
6 years 5 months ago #166703
by RobotMatic
Replied by RobotMatic on topic MOD operator
Thanks a lot!!!. You have helped me an amount !!. I leave you how I stay the line.
Muchas Graciassssss!!!!
O113 IF [[#<_longuitud_z> MOD [#<_pasada_z>] ] EQ 0]
(MSG,"XXXXX")
O113 ENDIF
Muchas Graciassssss!!!!
O113 IF [[#<_longuitud_z> MOD [#<_pasada_z>] ] EQ 0]
(MSG,"XXXXX")
O113 ENDIF
Please Log in to join the conversation.
Time to create page: 0.787 seconds
