Difference between revisions of "ObjectType:int"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
* [[DataType:string|string]] '''Hex''': A hexadecimal string equivalent to this number | * [[DataType:string|string]] '''Hex''': A hexadecimal string equivalent to this number | ||
* [[DataType:int|int]] '''Reverse''': This number, with its bytes reversed (1234 is turned into 3523477504.. easier to see in hex: 00 00 04 D2 -> D2 04 00 00) | * [[DataType:int|int]] '''Reverse''': This number, with its bytes reversed (1234 is turned into 3523477504.. easier to see in hex: 00 00 04 D2 -> D2 04 00 00) | ||
+ | |||
+ | == Methods == | ||
+ | * '''Inc''': Increments this int by 1.0 | ||
+ | * '''Inc['''formula''']''': Increments this int by a given amount | ||
+ | * '''Dec''': Decrements this int by 1.0 | ||
+ | * '''Dec['''formula''']''': Decrements this int by a given amount | ||
+ | * '''Set['''formula''']''': Sets this int to a given value | ||
== Returns == | == Returns == | ||
Line 13: | Line 20: | ||
== See Also == | == See Also == | ||
+ | * [[LavishScript:Data Types|Data Types]] |
Revision as of 22:36, 22 February 2005
Description
Short for integer, an int is a whole number that can be represented in 32 bits. This datatype is limited to the numbers -2,147,483,648 to 2,147,483,647.
Members
- float Float: This number, converted to a float
- string Hex: A hexadecimal string equivalent to this number
- int Reverse: This number, with its bytes reversed (1234 is turned into 3523477504.. easier to see in hex: 00 00 04 D2 -> D2 04 00 00)
Methods
- Inc: Increments this int by 1.0
- Inc[formula]: Increments this int by a given amount
- Dec: Decrements this int by 1.0
- Dec[formula]: Decrements this int by a given amount
- Set[formula]: Sets this int to a given value
Returns
The string representation of this number