Difference between revisions of "Manuals/calci/GCD"
Jump to navigation
Jump to search
Line 28: | Line 28: | ||
|- class="odd" | |- class="odd" | ||
− | |class="sshl_f" |GCD() | + | |class="sshl_f" |GCD(48,64) |
− | |class="sshl_f" | | + | |class="sshl_f" |16 |
|- class="even" | |- class="even" | ||
− | |class="sshl_f" |GCD() | + | |class="sshl_f" |GCD(125,0) |
− | |class="sshl_f" | | + | |class="sshl_f" |125 |
|- class="odd" | |- class="odd" | ||
− | |class="sshl_f" |GCD() | + | |class="sshl_f" |GCD(125,5) |
− | |class="sshl_f" | | + | |class="sshl_f" |5 |
|- class="even" | |- class="even" | ||
− | |class="sshl_f" |GCD() | + | |class="sshl_f" |GCD(125,5.5) |
− | |class="sshl_f" | | + | |class="sshl_f" |5 |
|- class="odd" | |- class="odd" | ||
− | |class="sshl_f" |GCD() | + | |class="sshl_f" |GCD(0.8,2) |
− | |class="sshl_f" | | + | |class="sshl_f" |2 |
|} | |} |
Revision as of 06:27, 20 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(48,64) | 16 |
GCD(125,0) | 125 |
GCD(125,5) | 5 |
GCD(125,5.5) | 5 |
GCD(0.8,2) | 2 |