Int: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (indexed page with portuguese version)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
An integer is any whole number. It can be positive, zero, or negative. Examples: 1 0 -1 3 1 6 6 19 -152 5127 -8913 9000
An '''int'''eger is any whole number (i.e. without a decimal point). It can be positive, zero, or negative.


Note: it can also be over 9000
A number with a decimal point and following numbers is referred to as a [[float]] number.


A number with decimals is referred to as a [[float]] number
Lua allows you to use these interchangeably and will convert between the two as needed.
[[Category:Scripting Concepts]]
[[Category:Scripting Concepts]]
[[en:Int]]
[[ru:Number]]
[[hu:Int]]
[[de:Int]]
[[pt-br:Int]]

Latest revision as of 20:55, 5 August 2021

An integer is any whole number (i.e. without a decimal point). It can be positive, zero, or negative.

A number with a decimal point and following numbers is referred to as a float number.

Lua allows you to use these interchangeably and will convert between the two as needed.