Difference between revisions of "Int64"

From GiderosMobile
m
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' <br/>
+
<!-- GIDEROSOBJ:int64 -->
 +
'''Supported platforms:''' [[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/>
 
'''Available since:''' Gideros 2016.08<br/>
 
'''Available since:''' Gideros 2016.08<br/>
 +
 
=== Description ===
 
=== Description ===
 
64-bit integers as built-in Lua library registered with int64 name. No need to require it.
 
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
  
#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
  
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.
  
num[i]
+
{|-
num[i] = b
+
| style="width: 50%; vertical-align:top;"|
All operators are supported including new bitwise ones as for Lua double numbers.{|-
 
| style="width: 50%;"|
 
 
=== Methods ===
 
=== Methods ===
[[int64.new]] - Create 64 bit integer<br/>
+
[[int64.new]] ''creates a 64 bit integer''<br/><!--GIDEROSMTD:int64.new(value) creates a 64 bit integer-->
| style="width: 50%;"|
+
 
 +
| style="width: 50%; vertical-align:top;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}
 +
 +
{{GIDEROS IMPORTANT LINKS}}

Latest revision as of 20:46, 10 June 2023

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
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.

Methods

int64.new creates a 64 bit integer

Events

Constants