Difference between revisions of "008E"

From GTAMods Wiki
Jump to navigation Jump to search
m (categorized to math opcodes)
(updating page)
Line 1: Line 1:
<code>008E=2,%1d% %2d%</code><br>
+
{{Icon|trilogy}}
'''Description''': Converts a float to an integer<br>
+
<hr />
'''Parameter 1''': Variable to store an integer<br>
+
'''Description'''
'''Parameter 2''': Variable to pass a float value<br>
+
: Converts a global variable floating-point value to an integer and stores it to a local variable
'''Supports''': GTA3, Vice City, San Andreas<br>
+
'''Syntax'''
 +
: 008E: [''local var int''] = float_to_integer [''global var flt'']
 +
: 008E: [''local var int''] = float [''global var flt''] to_integer
 +
'''Parameter'''
 +
: [''local var int'']
 +
:: Local variable to store the converted integer value
 +
: [''global var flt'']
 +
:: Global variable to pass a floating-point value
  
This opcode converts a float value into an integer value. The parameters are both the variables.
+
== Keywords ==
 +
math, conversion, float, integer
  
==Keywords==
+
== See also ==
math, conversion, float, integer
+
* [[008C]] &ndash; converts global var flt to global var int
 +
* [[0090]] &ndash; converts local var flt to global var int
 +
* [[0092]] &ndash; converts local var flt to local var int
  
[[Category:OpCodes]] [[Category:Math_OpCodes]]
+
[[Category:OpCodes]][[Category:Math_OpCodes]]

Revision as of 22:45, 19 August 2011

GTA III Vice City San Andreas


Description

Converts a global variable floating-point value to an integer and stores it to a local variable

Syntax

008E: [local var int] = float_to_integer [global var flt]
008E: [local var int] = float [global var flt] to_integer

Parameter

[local var int]
Local variable to store the converted integer value
[global var flt]
Global variable to pass a floating-point value

Keywords

math, conversion, float, integer

See also

  • 008C – converts global var flt to global var int
  • 0090 – converts local var flt to global var int
  • 0092 – converts local var flt to local var int