042D

From GTAMods Wiki
Revision as of 21:38, 5 January 2012 by Spaceeinstein (talk | contribs) (Created page with '{{Icon|trilogy}} '''CONVERT_METRES_TO_FEET_INT''' <hr /> <onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode| '''Description''' : Converts integer meters to feet '''Syntax…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GTA III Vice City San Andreas CONVERT_METRES_TO_FEET_INT


Description

Converts integer meters to feet

Syntax

042D: [var] = metric_to_imperial [int]

Parameter

[var]
Variable to store the converted value as integer
[int]
Integer value

Native analog

CONVERT_METRES_TO_FEET_INT

This opcode "converts" integer values from meters to feet. By "convert", this means multiplying the value by 3.3333333. The more precise conversion would be to multiply by 3.281. The output value does not round accordingly to traditional methods, i.e. inputting "2" will output "6" but inputting "3" will output "10".

Keywords

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

See also

  • 0425, converts integer values from meters to feet