Script Function Reference

Function Reference >Script Function Reference >Varaible Manipulation>getNumber

getNumber

getNumber will retrieve the real part of a caculator variable.

getNumber(varName, ...)

Parameters

getNumber will accept any number of string values. Each string needs to be the name of a varaible defined in the calculator.

Return Value

For 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.

Example

function example()
	x,y = getNumber("x","y")
	outputString("x+y="..(x + y).."\n")
end