0425

From GTAMods Wiki
Revision as of 03:32, 4 December 2016 by Spaceeinstein (talk | contribs)
(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


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