public static int aspectRatioDenominator(Size size){
  BigInteger width=BigInteger.valueOf(size.width());
  BigInteger height=BigInteger.valueOf(size.height());
  BigInteger gcd=width.gcd(height);
  int denominator=Math.min(width.intValue(),height.intValue()) / gcd.intValue();
  return denominator;
}

public static int aspectRatioDenominator ( Size size ) { BigInteger width = BigInteger . valueOf ( size . width ( ) ) ; BigInteger height = BigInteger . valueOf ( size . height ( ) ) ; BigInteger gcd = width . gcd ( height ) ; int denominator = Math . min ( width . intValue ( ) , height . intValue ( ) ) / gcd . intValue ( ) ; return denominator ; }
given a size return the numerator of its aspect ratio
