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
21
21
Synopsis: tonumber(e [, base])
22
22
]]
23
23
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
+
24
32
local luzer = require (" luzer" )
25
33
local test_lib = require (" lib" )
26
34
local 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
8
8
Synopsis: tostring(e)
9
9
]]
10
10
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
+
11
18
local luzer = require (" luzer" )
12
19
local test_lib = require (" lib" )
13
20
local MAX_INT = test_lib .MAX_INT
You can’t perform that action at this time.
0 commit comments