MCPcopy Create free account
hub / github.com/AshenvaleZX/ZXEngine / luaK_numberK

Function luaK_numberK

CPPScripts/External/Lua/lcode.c:602–619  ·  view source on GitHub ↗

** Add a float to list of constants and return its index. Floats ** with integral values need a different key, to avoid collision ** with actual integers. To that, we add to the number its smaller ** power-of-two fraction that is still significant in its scale. ** For doubles, that would be 1/2^52. ** (This method is not bulletproof: there may be another float ** with that value, and for floats la

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

luaK_floatFunction · 0.85
luaK_exp2KFunction · 0.85

Calls 2

luaV_flttointegerFunction · 0.85
addkFunction · 0.85

Tested by

no test coverage detected