Difference between revisions of "Manuals/calci/GCD"

From ZCubes Wiki
Jump to navigation Jump to search
Line 16: Line 16:
 
*If any 'number' is nonnumeric, Calci displays an #ERROR message.
 
*If any 'number' is nonnumeric, Calci displays an #ERROR message.
 
*If any 'number' is negative, Calci displays an #ERROR message.
 
*If any 'number' is negative, Calci displays an #ERROR message.
 +
*If any 'number' is not an integer, it is truncated.
  
 
== Examples ==
 
== Examples ==

Revision as of 16:34, 19 November 2013

=GCD(number1, number2, .....)

  • Where 'number1, number2, ......' are integer values.

GCD() calculates the 'Greatest Common Divisor' of two or more integers.

Description

GCD(number1, number2, .....)

For Example,

GCD(5,10) returns 5

  • GCD value is the largest interger that divides the input numbers without a remainder.
  • If any 'number' is nonnumeric, Calci displays an #ERROR message.
  • If any 'number' is negative, Calci displays an #ERROR message.
  • If any 'number' is not an integer, it is truncated.

Examples

Function GCD Output
GCD()
GCD()
GCD()
GCD()
GCD()