Difference between revisions of "Integer Divide Operator"

From GiderosMobile
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/>
+
'''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform linux.png]]<br/>
 
'''Available since:''' Gideros 2017.10<br/>
 
'''Available since:''' Gideros 2017.10<br/>
  

Latest revision as of 23:46, 13 January 2025

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

Description

Divide a number to a whole number.

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

Examples

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

Make an integer out of any numbers

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