cancel
Showing results for 
Search instead for 
Did you mean: 

Modulo Operator

Stephen
Level 3
Hi, It surprises me that to do a simple x Modulo y operation in BP is so difficult. It is a basic operation but I cant seem to figure out how to do it anywhere. Does anyone know how to make this work? Thanks.
1 REPLY 1

John__Carter
Staff
Staff
Hi Stephen - there is no modulus operator that you can use directly in a calculation stage I'm afraid. You could however write a 1 line code stage (eg OutputNumber = InputNumber1 Mod InputNumber2) as a work around.