Developer

API Reference

ILua_ToNumber()

Brew Release
Brew MP 1.0.2
See Also
ILua_IsConvertible()
Description
Converts the Lua value at the given acceptable index to a double-precision floating point value. The Lua value must be a number or a string convertible to a number.
Parameters
  • pif
    []:
    a pointer to the ILua object
  • nIndex
    []:
    index of the value to convert
  • pfNum
    []:
    pointer to the converted double value on output
Interface
Prototype
   AEEResult ILua_ToNumber(ILua *pif, int nIndex, double *pfNum)
Return
AEE_SUCCESS if the function succeeded, otherwise an error code.
  • Follow