Difference between revisions of "Template:Gcd/doc"

From blackwiki
Jump to navigation Jump to search
imported>Gonnym
(not deprecated per Wikipedia talk:Lua#Template:Gcd)
imported>Vanisaac
m (→‎Examples: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 11: Line 11:
 
*{{tlx|gcd|2089|3571}} → {{gcd|2089|3571}}
 
*{{tlx|gcd|2089|3571}} → {{gcd|2089|3571}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
[[Category:Mathematical function templates|GCD]]
 
[[Category:Mathematical function templates|GCD]]
</includeonly>
+
}}</includeonly>

Latest revision as of 15:19, 25 April 2020

This template calculates the greatest common divisor (gcd) of two or more parameters.

Examples

  • {{gcd|16|6}} → 2
  • {{gcd|360|180|120|90}} → 30
  • {{gcd|544|119}} → 17
  • {{gcd|2089|3571}} → 1