Java tutorial
//package com.java2s; import android.graphics.Rect; public class Main { public static float m2226a(Rect rect) { return ((float) rect.width()) / ((float) rect.height()); } }