Difference between revisions of "0425"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
− | {{Icon| | + | {{OpCode |
− | + | | games = {{Icon|t}} | |
− | + | | command = CONVERT_METRES_TO_FEET | |
− | + | | description = Converts floating-point meters to feet | |
− | + | | syntax1 = 0425: [''var''] = meters [''flt''] to_feet | |
− | + | | p1t = [''flt''] | |
− | + | | p1d = Floating-point value | |
− | + | | p2t = [''var''] | |
− | + | | p2d = Variable to store the converted value as floating-point | |
− | + | | native = [[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 | + | 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:Math OpCodes]] |
Latest revision as of 03:32, 4 December 2016
- 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
- 042D, converts integer values from meters to feet