Shopping Cart

Search:

Signup

Contact

FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

# FileMaker Pro Custom Functions

GCF ( A ; B )

Rate this function:

Discuss this Custom Function

Scott Morrison, InDev
http://www.indev.ca

Greatest Common Factor of two numbers

Sample Input:
 GCF ( 126 , 324 )
Sample Output:
 18

Then copy & paste into FileMaker Advanced's Edit Custom Function window.

## Description:

Uses Euclid's method of recursively computing the GCF (the GCF of two numbers is the same as the GCF of the smaller and the remainder (modula) of the larger divided by the smaller; and by definition, the GCF of any number and 0 is the number)

Note that the lowest common multiple of two numbers is their product divided by their GCF. In otherwords:
LCM(A, B) = A * B / GCF(A,B)

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

## Discuss:

This will be my first attenot to impliment of a Custom Fucntion with in FileMaker. I nearly need step by step instuctions as to how to set one up. The GCF Function is one that I need, but I also seek the Greatest Common Divisor (GCD) so I can constuct ratios exressions (34:1).

Might you be able to aide me?

Peter Kelley
St. Paul, MN USA

Peter Kelley, St. Paul, MN USA
February 06, 2014 6:02pm