Int64

From GiderosMobile
Revision as of 23:36, 20 February 2022 by MoKaLux (talk | contribs) (removed language stuff)

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 create 64 bit integer

Events

Constants