MOD operator
- RobotMatic
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 21
04 May 2020 19:09 - 04 May 2020 19:34 #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
Last edit: 04 May 2020 19:34 by RobotMatic. Reason: corrections
Please Log in or Create an account to join the conversation.
04 May 2020 23:28 #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
O113 IF [[[#<_longuitud_z>/#<_pasada_z>] MOD #<_divisor>] EQ 0]
(MSG,"#######")
O113 ENDIF
The following user(s) said Thank You: nkp
Please Log in or Create an account to join the conversation.
- RobotMatic
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 21
05 May 2020 01:00 - 05 May 2020 02:09 #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
Last edit: 05 May 2020 02:09 by RobotMatic.
Please Log in or Create an account to join the conversation.
Time to create page: 0.124 seconds