This is the documentation of قالب:Gcd.


This template calculates the قاسم مشترك أكبر (gcd) of two parameters. It returns the value of gcd. Zero is returned when calculation is too complex (this implementation only allows for ten iterations of the خوارزمية أقليدس).

أمثلة

عدل
  • {{gcd|16|6}} → 2
  • {{gcd|544|119}} → 17
  • {{gcd|2089|3571}} → 0 (algorithm iteration limit reached)