<< pyDict Scithon pyDiv >>

Scithon >> Scithon > pyDiff

pyDiff

Subtracts two variables.

Syntax

pyDiff(arg0, arg1)

Arguments

arg0

Variable 1 acts as minuend

arg1

Variable 2 acts as subtrahend

Description

Subtracts the two arguments and returns the result; equivalent to arg1 - arg2. Arguments can be of type int, double, string, bool or python variable.

Example

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

Report an issue
<< pyDict Scithon pyDiv >>