MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / numisinteger

Function numisinteger

ThirdParty/lua/lua/ltable.c:91–95  ·  view source on GitHub ↗

** Checks whether a float has a value representable as a lua_Integer ** (and does the conversion if so) */

Source from the content-addressed store, hash-verified

89** (and does the conversion if so)
90*/
91static int numisinteger (lua_Number x, lua_Integer *p) {
92 if ((x) == l_floor(x)) /* integral value? */
93 return lua_numbertointeger(x, p); /* try as an integer */
94 else return 0;
95}
96
97
98/*

Callers 2

luaH_newkeyFunction · 0.85
luaH_getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected