Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:AmmoExchange: Difference between revisions

Template page
Created page with "{{914_Item_2|{{{ammoType2|5.56x45mm}}}|rounds={{#expr: floor({{{amountOfAmmo|15}}}/{{AmmoValue|caliber={{{ammoType2|5.56x45mm}}}}})*{{AmmoValue|caliber={{{ammoType1|9x19mm}}}}..."
 
No edit summary
 
Line 1: Line 1:
{{914_Item_2|{{{ammoType2|5.56x45mm}}}|rounds={{#expr: floor({{{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>
{{#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>
 
 
 
{{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>
This formula does not work when converting 5.56x45mm to 7.62x39mm. As they are always a 1:1 conversion.
 
A = Amount of ammo in the input<br>
B = The "exchange value" of the ammo in the input<br>
C = The "exchange value" of the ammo in the output<br>
% = Modulo Operator (or in other words, the remainder after dividing)<br>
 
 
Exchange Values
* 9x19mm = 2
* 5.56x45mm = 3
* 7.62x39mm = 3
* 12/70 Buckshot = 5
* .44 Mag = 7
 
Text Example: 8 Rounds of 9x19mm to 5.56x45mm<br>
{{AmmoExchange
{{AmmoExchange
|amountOfAmmo = 15
|amountOfAmmo = 8
|ammoType1 = 9x19mm
|ammoType1 = 9x19mm
|ammoType2 = 5.56x45mm
|ammoType2 = 5.56x45mm
}}
Text Example: 15 Rounds of 9x19mm to 5.56x45mm<br>
{{AmmoExchange
|amountOfAmmo = 12
|ammoType1 = 9x19mm
|ammoType2 = .44 Mag
}}
Text Example: 35 Rounds of 7.62x39mm to 5.56x45mm<br>
{{AmmoExchange
|amountOfAmmo = 35
|ammoType1 = 7.62x39mm
|ammoType2 = 5.56x45mm
}}
Text Example: 65000 Rounds of .44 Mag to 9x19mm<br>
{{AmmoExchange
|amountOfAmmo = 65000
|ammoType1 = .44 Mag
|ammoType2 = 9x19mm
}}
}}

Latest revision as of 23:00, 27 October 2022

5.56x45mm (10 rounds)


FloorTemplate:Pars × b = Converted Ammo

Template:Pars × b % c = Remainder Ammo

This formula does not work when converting 5.56x45mm to 7.62x39mm. As they are always a 1:1 conversion.

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

Text Example: 8 Rounds of 9x19mm to 5.56x45mm
5.56x45mm (4 rounds) 9x19mm (2 rounds)

Text Example: 15 Rounds of 9x19mm to 5.56x45mm
.44 Mag (2 rounds) 9x19mm (5 rounds)

Text Example: 35 Rounds of 7.62x39mm to 5.56x45mm
5.56x45mm (35 rounds)

Text Example: 65000 Rounds of .44 Mag to 9x19mm
9x19mm (227500 rounds)

Cookies help us deliver our services. By using our services, you agree to our use of cookies.