Difference between revisions of "0425"

From GTAMods Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{{Icon|trilogy}}
+
{{Icon|trilogy}} '''CONVERT_METRES_TO_FEET'''
 
<hr />
 
<hr />
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
 
 
'''Description'''
 
'''Description'''
 
: Converts floating-point meters to feet
 
: Converts floating-point meters to feet
 
'''Syntax'''
 
'''Syntax'''
 
: 0425: meters [''var''] to_feet [''flt'']
 
: 0425: meters [''var''] to_feet [''flt'']
 +
: 0425: [''var''] = meters [''flt''] to_feet
 
'''Parameter'''
 
'''Parameter'''
 
: [''var'']
 
: [''var'']
Line 14: Line 14:
 
: [[CONVERT_METRES_TO_FEET]]
 
: [[CONVERT_METRES_TO_FEET]]
  
This opcode "converts" floating-point values from meters to feet. By "convert", this means dividing the value by 0.3. The more precise conversion would be to [http://www.wolframalpha.com/input/?i=convert+1+foot+to+meters divide by 0.3048]. This opcode was unused in GTA III in the default script.
+
This opcode "converts" floating-point values from meters to feet. By "convert", this means dividing the value by 0.3. The more precise conversion would be to [http://www.wolframalpha.com/input/?i=convert+1+foot+to+meters divide by 0.3048]. This opcode was unused in GTA III's original script.
}}</onlyinclude>
 
  
 
== Keywords ==
 
== Keywords ==

Revision as of 07:57, 8 January 2015

GTA III Vice City San Andreas CONVERT_METRES_TO_FEET


Description

Converts floating-point meters to feet

Syntax

0425: meters [var] to_feet [flt]
0425: [var] = meters [flt] to_feet

Parameter

[var]
Variable to store the converted value as floating-point
[flt]
Floating-point value

Native analog

CONVERT_METRES_TO_FEET

This opcode "converts" floating-point values from meters to feet. By "convert", this means dividing the value by 0.3. The more precise conversion would be to divide by 0.3048. This opcode was unused in GTA III's original script.

Keywords

change, convert, float, metres, metre, meter, foot, feet, metric, imperial

See also

  • 042D, converts integer values from meters to feet