This function is a shortcut of one of the corresponding calls:
getVar(name).toNumber()
getVar(scope, name).toNumber()

See Also:

getVar(), toNumber()