Difference between revisions of "0425"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
{{Icon|trilogy}} '''CONVERT_METRES_TO_FEET'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = CONVERT_METRES_TO_FEET
: Converts floating-point meters to feet
+
| description = Converts floating-point meters to feet
'''Syntax'''
+
| syntax1    = 0425: [''var''] = meters [''flt''] to_feet
: 0425: meters [''var''] to_feet [''flt'']
+
| p1t        = [''flt'']
: 0425: [''var''] = meters [''flt''] to_feet
+
| p1d        = Floating-point value
'''Parameter'''
+
| p2t        = [''var'']
: [''flt'']
+
| p2d        = Variable to store the converted value as floating-point
:: Floating-point value
+
| native      = [[CONVERT_METRES_TO_FEET]]
: [''var'']
+
}}
:: Variable to store the converted value as floating-point
 
'''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 [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.
+
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 never called in the [[Main.scm|original script]] of GTA III.
  
 
== Keywords ==
 
== Keywords ==
Line 20: Line 17:
  
 
== See also ==
 
== See also ==
* [[042D]], converts integer values from meters to feet
+
* {{Icon|t}} [[042D]], converts integer values from meters to feet
  
[[Category:OpCodes]][[Category:Math OpCodes]]
+
[[Category:Math OpCodes]]

Latest revision as of 03:32, 4 December 2016

GTA III Vice City San Andreas CONVERT_METRES_TO_FEET


Description
Converts floating-point meters to feet
Syntax
0425: [var] = meters [flt] to_feet
Parameter
[flt]
Floating-point value
[var]
Variable to store the converted value as floating-point
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 never called in the original script of GTA III.

Keywords

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

See also

  • GTA III Vice City San Andreas 042D, converts integer values from meters to feet