008C

From GTAMods Wiki
Jump to navigation Jump to search

GTA III Vice City San Andreas CSET_VAR_INT_TO_VAR_FLOAT


Description

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

Syntax

008C: [global var 1] = float_to_integer [global var 2]

Parameter

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

This opcode truncates a floating-point value of the global variable and stores its integral part into the global variable. For example, converting a value of 4.1 or 4.9 both produces 4 as a result.

Keywords

convert, global, variable, int, float, math

See also

  • 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
  • 0093 – convert local int to local float