Difference between revisions of "042D"
Jump to navigation
Jump to search
m |
m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{OpCode |
− | + | | games = {{Icon|t}} | |
− | + | | command = CONVERT_METRES_TO_FEET_INT | |
− | + | | description = Converts integer meters to feet | |
− | + | | syntax1 = 042D: [''var''] = meters [''int''] to_feet | |
− | + | | p1t = [''int''] | |
− | + | | p1d = Integer value | |
− | '' | + | | p2t = [''var''] |
− | + | | p2d = Variable to store the converted value as integer | |
− | + | | native = [[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 [http://www.wolframalpha.com/input/?i=convert+1+meter+to+feet%2C+8+digits 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". | 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 [http://www.wolframalpha.com/input/?i=convert+1+meter+to+feet%2C+8+digits 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 == | == Keywords == | ||
Line 21: | Line 17: | ||
== See also == | == See also == | ||
− | * [[0425]], converts floating-point values from meters to feet | + | * {{Icon|t}} [[0425]], converts floating-point values from meters to feet |
− | + | [[Category:Math OpCodes]] |
Latest revision as of 12:49, 14 December 2016
- Description
- Converts integer meters to feet
- Syntax
- 042D: [var] = meters [int] to_feet
- Parameter
- [int]
- Integer value
- [var]
- Variable to store the converted value as integer
- 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.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