Difference between revisions of "042D"
Jump to navigation
Jump to search
m |
|||
Line 7: | Line 7: | ||
: 042D: [''var''] = metric_to_imperial [''int''] | : 042D: [''var''] = metric_to_imperial [''int''] | ||
'''Parameter''' | '''Parameter''' | ||
+ | : [''int''] | ||
+ | :: Integer value | ||
: [''var''] | : [''var''] | ||
:: Variable to store the converted value as integer | :: Variable to store the converted value as integer | ||
− | |||
− | |||
'''Native analog''' | '''Native analog''' | ||
: [[CONVERT_METRES_TO_FEET_INT]] | : [[CONVERT_METRES_TO_FEET_INT]] |
Revision as of 00:39, 20 November 2016
Description
- Converts integer meters to feet
Syntax
- 042D: [var] = metric_to_imperial [int]
Parameter
- [int]
- Integer value
- [var]
- Variable to store the converted value as integer
Native analog
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.2808399. The output value does not round accordingly to traditional methods, e.g., 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 floating-point values from meters to feet