Difference between revisions of "Int64"
From GiderosMobile
m (styling) |
|||
Line 4: | Line 4: | ||
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/> | '''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/> | ||
'''<translate>Available since</translate>:''' Gideros 2016.08<br/> | '''<translate>Available since</translate>:''' Gideros 2016.08<br/> | ||
+ | |||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
− | <translate>64-bit integers as built-in Lua library registered with int64 name. No need to require it. | + | <translate> |
+ | 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: | 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: | To convert them back to Lua built-in types: | ||
+ | * '''num()''' -- to number | ||
+ | * '''num""''' -- to string | ||
− | |||
− | |||
To get and set single bits: | To get and set single bits: | ||
+ | * '''num[i]''' | ||
+ | * '''num[i] = b''' | ||
+ | |||
+ | All operators are supported including new bitwise ones as for Lua double numbers. | ||
+ | </translate> | ||
− | |||
− | |||
− | |||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Methods</translate> === | === <translate>Methods</translate> === | ||
[[Special:MyLanguage/int64.new|int64.new]] ''<translate>Create 64 bit integer</translate>''<br/><!-- GIDEROSMTD:int64.new(value) Create 64 bit integer --> | [[Special:MyLanguage/int64.new|int64.new]] ''<translate>Create 64 bit integer</translate>''<br/><!-- GIDEROSMTD:int64.new(value) Create 64 bit integer --> | ||
+ | |||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Events</translate> === | === <translate>Events</translate> === |
Revision as of 21:21, 21 April 2020
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 |