Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0092

Opcode Database

0092

DescriptionConverts a float value to an integer (via truncating).

Examples

1.2 > 1
1.9 > 1
0.2 > 0
-1.3 > -1
Parameters (v2)1) (Returned) Integer (LVAR_INT)
2) Float (LVAR_FLOAT)
Gamessa vc iii
CategoryCommon, Math
San Andreas
sascm.ini0092=2,%1d% = float_to_int %2d%
Example0092: 0@ = float_to_int 1@
Command NameCSET_LVAR_INT_TO_LVAR_FLOAT
Vice City
sascm.ini0092=2,%1d% = float_to_int %2d%
Example0092: 0@ = float_to_int 1@
GTA III
gtascm.ini0092=2,%1d% = float_to_int %2d%
Example0092: 0@ = float_to_int 1@

<< 0091

0093 >>