tarantool> 2^52 == 2^52 + 0.5
–––
- <result>
...
tarantool> 2^52 == 2^52 + 0.5
–––
- true
...
tarantool> 2^52 == 2^52 + 0.5
–––
- true
...
tarantool> 2^52 == 2^52 + 1
–––
- <result>
...
tarantool> 2^52 == 2^52 + 0.5
–––
- true
...
tarantool> 2^52 == 2^52 + 1
–––
- false
...
tarantool> 2^52 == 2^52 + 0.5
–––
- true
...
tarantool> 2^52 == 2^52 + 1
–––
- false
...
tarantool> 2^53 == 2^53 + 1
–––
- <result>
...
tarantool> 2^52 == 2^52 + 0.5
–––
- true
...
tarantool> 2^52 == 2^52 + 1
–––
- false
...
tarantool> 2^53 == 2^53 + 1
–––
- true
...
tarantool> 2^52 == 2^52 + 0.5
–––
- true
...
tarantool> 2^52 == 2^52 + 1
–––
- false
...
tarantool> 2^53 == 2^53 + 1
–––
- true
...
tarantool> 2^53 == 2^53 + 2
–––
- <result>
...
tarantool> 2^52 == 2^52 + 0.5
–––
- true
...
tarantool> 2^52 == 2^52 + 1
–––
- false
...
tarantool> 2^53 == 2^53 + 1
–––
- true
...
tarantool> 2^53 == 2^53 + 2
–––
- false
...
tarantool> box.cfg{} <snip> box.space.s:create_index('i')
–––
- <snip>
...
tarantool> box.cfg{} <snip> box.space.s:create_index('i')
–––
- <snip>
...
tarantool> box.space.s:insert({2^53})
–––
- <result>
...
tarantool> box.cfg{} <snip> box.space.s:create_index('i')
–––
- <snip>
...
tarantool> box.space.s:insert({2^53})
–––
- [9007199254740992]
...
tarantool> box.cfg{} <snip> box.space.s:create_index('i')
–––
- <snip>
...
tarantool> box.space.s:insert({2^53})
–––
- [9007199254740992]
...
tarantool> box.space.s:insert({2^53 + 1})
–––
- <result>
...
tarantool> box.cfg{} <snip> box.space.s:create_index('i')
–––
- <snip>
...
tarantool> box.space.s:insert({2^53})
–––
- [9007199254740992]
...
tarantool> box.space.s:insert({2^53 + 1})
–––
- error: Duplicate key exists in unique index 'i' in space 's'
...
tarantool> box.space.s:select({2^53})
–––
- <result>
...
tarantool> box.space.s:select({2^53})
–––
- [9007199254740992]
...
tarantool> box.space.s:select({2^53})
–––
- [9007199254740992]
...
tarantool> box.space.s:select({2^53 + 1})
–––
- <result>
...
tarantool> box.space.s:select({2^53})
–––
- [9007199254740992]
...
tarantool> box.space.s:select({2^53 + 1})
–––
- [9007199254740992]
...
tarantool> type(box.space.s:select({2^53})[1])
–––
- <result>
...
tarantool> type(box.space.s:select({2^53})[1])
–––
- cdata
...
tarantool> 9007199254740992ULL
–––
- <result>
...
tarantool> 9007199254740992ULL
–––
- 9007199254740992
...
tarantool> 9007199254740992ULL
–––
- 9007199254740992
...
tarantool> type(9007199254740992ULL)
–––
- <result>
...
tarantool> 9007199254740992ULL
–––
- 9007199254740992
...
tarantool> type(9007199254740992ULL)
–––
- cdata
...
tarantool> 9007199254740992ULL
–––
- 9007199254740992
...
tarantool> type(9007199254740992ULL)
–––
- cdata
...
tarantool> 9007199254740992ULL + 1
–––
- <result>
...
tarantool> 9007199254740992ULL
–––
- 9007199254740992
...
tarantool> type(9007199254740992ULL)
–––
- cdata
...
tarantool> 9007199254740992ULL + 1
–––
- 9007199254740993
...
tarantool> 9007199254740992ULL + 1
–––
- 9007199254740993
...
tarantool> 9007199254740992ULL == 9007199254740992ULL + 1
–––
- <result>
...
tarantool> 9007199254740992ULL + 1
–––
- 9007199254740993
...
tarantool> 9007199254740992ULL == 9007199254740992ULL + 1
–––
- false
...
tarantool> 9007199254740992ULL + 1
–––
- 9007199254740993
...
tarantool> 9007199254740992ULL == 9007199254740992ULL + 1
–––
- false
...
tarantool> 9007199254740992ULL == 9007199254740992ULL + 0.5
–––
- <result>
...
tarantool> 9007199254740992ULL + 1
–––
- 9007199254740993
...
tarantool> 9007199254740992ULL == 9007199254740992ULL + 1
–––
- false
...
tarantool> 9007199254740992ULL == 9007199254740992ULL + 0.5
–––
- true
...
tarantool> 9007199254740992ULL == 9007199254740992ULL + 1
–––
- false
...
tarantool> 9007199254740992ULL == 9007199254740992ULL + 0.5
–––
- true
...
tarantool> 9007199254740992ULL + 0.5
–––
- 9007199254740992
...
tarantool> 9007199254740992ULL < 9007199254740992ULL + 1
–––
- <result>
...
tarantool> 9007199254740992ULL < 9007199254740992ULL + 1
–––
- true
...
tarantool> 9007199254740992ULL < 9007199254740992ULL + 1
–––
- true
...
tarantool> 9007199254740992ULL < -1
–––
- <result>
...
tarantool> 9007199254740992ULL < 9007199254740992ULL + 1
–––
- true
...
tarantool> 9007199254740992ULL < -1
–––
- true
...
tarantool> box.cfg{listen = 3313} <snip> c = nb.connect(box.cfg.listen)
<snip>
–––
...
tarantool> box.cfg{listen = 3313} <snip> c = nb.connect(box.cfg.listen)
<snip>
–––
...
tarantool> t = {} for _ = 1, 10 do
> table.insert(t,
> c:execute('SELECT random()').rows[1]
> :totable()[1]
> )
> end
–––
...
tarantool> box.cfg{listen = 3313} <snip> c = nb.connect(box.cfg.listen)
<snip>
–––
...
tarantool> t = {} for _ = 1, 10 do
> table.insert(t,
> c:execute('SELECT random()').rows[1]
> :totable()[1]
> )
> end
–––
...
tarantool> table.sort(t)
–––
...
tarantool> t
–––
- <result>
...
tarantool> t
–––
- - 1064442337705904389
- 5430535088656468933
- 8084626668617668138
- -7957167126669429942
- -6755436305203424895
- -6476727283901405634
- -5944830508420504980
- -2428743323307643782
- -1162597621816885600
- -108704732427766924
...
Native Lua numeric type
FFI cdata numeric types
Odd arithmetics for both existing numeric types