008D

From GTAMods Wiki
Revision as of 17:09, 1 August 2015 by Seemann (talk | contribs) (Created page with "{{Icon|trilogy}} '''CSET_VAR_FLOAT_TO_VAR_INT''' <hr /> '''Description''' : Converts the integer value of the global variable to an equivalent floating-point value and stores...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GTA III Vice City San Andreas CSET_VAR_FLOAT_TO_VAR_INT


Description

Converts the integer value of the global variable to an equivalent floating-point value and stores the result into the global variable.

Syntax

008D: [global var 1] = integer_to_float [global var 2]

Parameter

[global var 1]
Global variable
[global var 2]
Global variable

This opcode adds a fractal part to an integer value of the global variable and stores the result into the global variable. For example, a value of 4 is converted into 4.0 as a result.

Keywords

convert, global, variable, int, float, math

See also

  • 008C – convert global float to global int
  • 008E – convert global float to local int
  • 008F – convert global int to local float
  • 0090 – convert local float to global int
  • 0091 – convert local int to global float
  • 0092 – convert local float to local int
  • 0093 – convert local int to local float