/* try to convert a float to an integer, rounding according to 'mode'.  */
int luaV_flttointeger(lua_Number n, lua_Integer *p, F2Imod mode)
/* try to convert a float to an integer, rounding according to 'mode'.  */
int luaV_flttointeger(lua_Number n, lua_Integer *p, F2Imod mode)
{
    if (mode == F2Ieq) return 0;
    else if (mode == F2Iceil)
      f += 1;
  }
  return lua_numbertointeger(f, p);
}