File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ https://github.com/LuaJIT/LuaJIT/pull/558
2121Synopsis: tonumber(e [, base])
2222]]
2323
24+ --[[
25+ TODO:
26+ n = tonumber(cdata)
27+ Converts a number cdata object to a double and returns it as a Lua
28+ number. This is particularly useful for boxed 64 bit integer
29+ values. Caveat: this conversion may incur a precision loss.
30+ ]]
31+
2432local luzer = require (" luzer" )
2533local test_lib = require (" lib" )
2634local MAX_INT = test_lib .MAX_INT
Original file line number Diff line number Diff line change @@ -8,6 +8,13 @@ https://www.lua.org/manual/5.1/manual.html
88Synopsis: tostring(e)
99]]
1010
11+ --[[
12+ TODO:
13+ s = tostring(cdata)
14+ Returns a string representation of the value of 64 bit integers
15+ ("nnnLL" or "nnnULL") or complex numbers ("re±imi").
16+ ]]
17+
1118local luzer = require (" luzer" )
1219local test_lib = require (" lib" )
1320local MAX_INT = test_lib .MAX_INT
You can’t perform that action at this time.
0 commit comments