Tao.Lua SDK Documentation

Lua.lua_tointeger Method 

Converts the Lua value at the given acceptable index to the signed integral type lua_Integer. The Lua value must be a number or a string convertible to a number (see §2.2.1); otherwise, lua_tointeger returns 0.

[Visual Basic]
Public Shared Function lua_tointeger( _
   ByVal L As IntPtr, _
   ByVal idx As Integer _
) As Integer
[C#]
public static int lua_tointeger(
   IntPtr L,
   int idx
);

Parameters

L
idx

Return Value

Remarks

If the number is not an integer, it is truncated in some non-specified way.

See Also

Lua Class | Tao.Lua Namespace