Difference between revisions of "Int64"
From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2016.08<br/> === Description === 64-bit integers as built-in Lua library registered with int64 name....") |
|||
Line 18: | Line 18: | ||
num[i] | num[i] | ||
num[i] = b | num[i] = b | ||
− | All operators are supported including new bitwise ones as for Lua double numbers.{|- | + | All operators are supported including new bitwise ones as for Lua double numbers. |
+ | |||
+ | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
+ | [[int64.new]] - Create 64 bit integer<br/> | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === | ||
=== Constants === | === Constants === | ||
|} | |} |
Revision as of 08:56, 23 August 2018
Supported platforms:
Available since: Gideros 2016.08
Description
64-bit integers as built-in Lua library registered with int64 name. No need to require it.
You have 3 ways to create int64 numbers:
- n -- from number, shortcut for int64.new(n)
int64.new(n) -- from number int64.new(s) -- from string To convert them back to Lua built-in types:
num() -- to number num"" -- to string To get and set single bits:
num[i] num[i] = b All operators are supported including new bitwise ones as for Lua double numbers.
Methodsint64.new - Create 64 bit integer |
EventsConstants |