Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 2449 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hi! Is there a way to calculate the GCD (greatest common denominator) of two integers in FileMaker Pro without the use of a custom function? (I don't have Filemaker Pro Advanced)

 

i.e.

The GCD of 1920 x 1080 = 120.

How can I use Filemaker Pro to get to this 120?

 

For Context:

Standard 55in LCD Monitor Resolution = 1920 x 1080.

The Aspect Ratio is 16:9

Which means that 1920/120 = 16 and 1080/120 = 9.

 

 

I'm trying to calculate the aspect ratio for other monitors that aren't the standard.

  • 3 weeks later...
Posted

Let ( [

  $a = 1920 ;

  $b = 1080 ;

 

  $GCD = "Case(Mod($a;$b)=0;$b;Let([$c=$a;$a=$b;$b=Mod($c;$a)];Evaluate($GCD)))"

] ;

Evaluate ( $GCD )

)

This topic is 2449 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.