0093

From GTAMods Wiki
Jump to navigation Jump to search

GTA III Vice City San Andreas CSET_LVAR_FLOAT_TO_LVAR_INT


Description

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

Syntax

0093: [local var 1] = integer_to_float [local var 2]

Parameter

[local var 1]
Local variable
[local var 2]
Local variable

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

Keywords

convert, local, variable, int, float, math

See also

  • 008C – convert global float to global int
  • 008D – convert global int to global float
  • 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