Difference between revisions of "0015"

From GTAMods Wiki
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''DIV_FLOAT_VAR_BY_VAL'''
| ini        = 1
+
<hr />
| description = Divides a the value of a specific global variable by a floating point value
+
'''Description'''
| p1          = global variable
+
: Divides the value stored in the global variable by the specified floating-point value
| p2          = a floating point
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: 0015: [''global var''] /= [''flt'']
}}
+
: [''global var''] /= [''flt'']
This opcode divides a the value of a specific global variable by a floating point value
+
'''Parameter'''
 +
: [''global var'']
 +
:: Global variable
 +
: [''flt'']
 +
:: Floating-point value
  
==Sanny Builder Example==
+
== Keywords ==
 +
global, variable, var, float, div
  
<source lang="scm">0015: $EXPORT_PRICE_HEALTH_MULTIPLIER /= 1000.0</source>
+
== See also ==
 +
* [[0014]] &ndash; divs global var by int
 +
* [[0016]] &ndash; divs local var by int
 +
* [[0017]] &ndash; divs local var by flt
  
==Keywords==
+
[[Category:OpCodes]][[Category:Math OpCodes]]
global, variable, floating point value, divide 
 
 
 
[[Category:Math_OpCodes]]
 

Latest revision as of 15:11, 3 February 2015

GTA III Vice City San Andreas DIV_FLOAT_VAR_BY_VAL


Description

Divides the value stored in the global variable by the specified floating-point value

Syntax

0015: [global var] /= [flt]
[global var] /= [flt]

Parameter

[global var]
Global variable
[flt]
Floating-point value

Keywords

global, variable, var, float, div

See also

  • 0014 – divs global var by int
  • 0016 – divs local var by int
  • 0017 – divs local var by flt