<< pyList Scithon pyMul >>

Scithon >> Scithon > pyMod

pyMod

Finds the modulus between two variables.

Syntax

pyMod(arg0, arg1)

Arguments

arg0

Variable 1 acts as dividend

arg1

Variable 2 acts as divisor

Description

Divides the two arguments and returns the remainder. Arguments can be of type int, double, string, bool or python variable.

Example

startPy
py("a = 5")
var = pyGet("a")
pyMod(var,3)
quitPy

Report an issue
<< pyList Scithon pyMul >>