Difference between revisions of "0425"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{Icon|trilogy}} <hr /> <onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode| '''Description''' : Converts meters to feet '''Syntax''' : 0425: meters [''var''] to_feet [''f…')
 
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Icon|trilogy}}
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
+
| command    = CONVERT_METRES_TO_FEET
'''Description'''
+
| description = Converts floating-point meters to feet
: Converts meters to feet
+
| syntax1    = 0425: [''var''] = meters [''flt''] to_feet
'''Syntax'''
+
| p1t        = [''flt'']
: 0425: meters [''var''] to_feet [''flt'']
+
| p1d        = Floating-point value
'''Parameter'''
+
| p2t        = [''var'']
: [''var'']
+
| p2d        = Variable to store the converted value as floating-point
:: Variable to store the converted value
+
| native      = [[CONVERT_METRES_TO_FEET]]
: [''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 [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 never called in the [[Main.scm|original script]] of GTA III.
}}</onlyinclude>
 
  
 
== Keywords ==
 
== Keywords ==
Line 21: 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