Modulus determines the remainder of a division operation. Instead of returning the result of the division, the modulus operation returns the whole number remainder
Smartcode
Syntax
Modulus (type,value,result)
Parameters
- Type(Required) – Type to get values for processing the modulus. It may be direct value, from controls or from the data model
- Value(Required) – To get values for modulus based on the type selected
- Result – Result of the modulus
- Assign To(Required) – Target type to paste the result of the modulus. It may be controls, data models or page variables
- Value(Required) – Final output of the modulus. User can get the value from the target for next level process
Example
TextBox_3 = Arithmetic.Mod(TextBox_1, TextBox_2)
Directcode
Syntax
Orefuncs.math().Mod(value1, value2)
Parameters
- value1, value2(Required) – Values to find modulus
Example
Orefuncs.math().Mod(123,100)