Script Function ReferenceFunction Reference >Script Function Reference >Varaible Manipulation>getNumbergetNumbergetNumber will retrieve the real part of a caculator variable.
getNumber(varName, ...)
ParametersgetNumber will accept any number of string values. Each string needs to be the name of a varaible defined in the calculator.Return ValueFor each parameter passed getNumber will return the real part of the varaible in the calculator. If the variable is not defined in the calculator or is a list or matrix a nil is returned.Examplefunction example() x,y = getNumber("x","y") outputString("x+y="..(x + y).."\n") end |