Integer Divide Operator

From GiderosMobile
Revision as of 01:25, 30 November 2022 by MoKaLux (talk | contribs)

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.png
Available since: Gideros 2017.10


Divide a number to a whole number.

a=b // c   put the integer result of divide 'b' by 'c' into 'a'


a=b//c -- faster than a=math.floor(b/c)

Make an integer out of any numbers

a=b//1 -- result: a=5 (unique to gideros!)