screen ratio calculation chairul umam

Run Settings
LanguageGroovy
Language Version
Run Command
def (a, b) = ratio 1920, 1080 println "$a:$b" def ratio(height, width) { def gcd = gcd height, width height > width ? [height / gcd, width / gcd] : [width / gcd, height / gcd] } def gcd(p, q) { q == 0 ? p : gcd(q, p % q) }
Editor Settings
Theme
Key bindings
Full width
Lines