Template:AmmoExchange: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{914_Item_2|{{{ammoType2|5.56x45mm}}}|rounds={{#expr: | {{#ifeq:{{AmmoValue|caliber={{{ammoType1|9x19mm}}}}}|{{AmmoValue|caliber={{{ammoType2|5.56x45mm}}}}}|{{914_Item_2|{{{ammoType2|5.56x45mm}}}|rounds={{{amountOfAmmo|15}}}}}| | ||
{{914_Item_2|{{{ammoType2|5.56x45mm}}}|rounds={{#expr: trunc({{{amountOfAmmo|15}}}/{{AmmoValue|caliber={{{ammoType2|5.56x45mm}}}}})*{{AmmoValue|caliber={{{ammoType1|9x19mm}}}}}}}}}{{#ifexpr:{{#expr:({{{amountOfAmmo|15}}}/{{AmmoValue|caliber={{{ammoType1|9x19mm}}}}})*{{AmmoValue|caliber={{{ammoType1|9x19mm}}}}} mod {{AmmoValue|caliber={{{ammoType2|5.56x45mm}}}}}}}= 0||{{914_Item_2|{{{ammoType1|9x19mm}}}|rounds={{#expr: ({{{amountOfAmmo|15}}}/{{AmmoValue|caliber={{{ammoType1|9x19mm}}}}}) * {{AmmoValue|caliber={{{ammoType1|9x19mm}}}}} mod {{AmmoValue|caliber={{{ammoType2|5.56x45mm}}}}}}}}}}}}}<noinclude> | |||
Line 5: | Line 6: | ||
{{Mvar|1= Floor{{Pars|s=200%|{{Overunderset|—|a|c}}}} × b = Converted Ammo}}<br><br> | {{Mvar|1= Floor{{Pars|s=200%|{{Overunderset|—|a|c}}}} × b = Converted Ammo}}<br><br> | ||
{{Mvar|1= {{Pars|s=200%|{{Overunderset|—|a|b}}}} × b % c = Remainder Ammo}}<br><br> | {{Mvar|1= {{Pars|s=200%|{{Overunderset|—|a|b}}}} × b % c = Remainder Ammo}}<br><br> | ||
When converting between 5.56x45mm & 7.62x39mm, do not use the "floor" function. | |||
A = Amount of ammo in the input<br> | A = Amount of ammo in the input<br> | ||
Line 20: | Line 21: | ||
* .44 Mag = 7 | * .44 Mag = 7 | ||
{{AmmoExchange | {{AmmoExchange | ||
|amountOfAmmo = | |amountOfAmmo = 6 | ||
|ammoType1 = .44 Mag | |ammoType1 = .44 Mag | ||
|ammoType2 = | |ammoType2 = 7.62x39mm | ||
}} | }} |
Latest revision as of 00:53, 15 August 2025
Floor() × b = Converted Ammo
() × b % c = Remainder Ammo
When converting between 5.56x45mm & 7.62x39mm, do not use the "floor" function.
A = Amount of ammo in the input
B = The "exchange value" of the ammo in the input
C = The "exchange value" of the ammo in the output
% = Modulo Operator (or in other words, the remainder after dividing)
Exchange Values
- 9x19mm = 2
- 5.56x45mm = 3
- 7.62x39mm = 3
- 12/70 Buckshot = 5
- .44 Mag = 7