Method: size::ratio

Gets the ratio by width and height

Info

Syntax

size::ratio($width, $height)

Parameters

Return (float)

Example


echo size::ratio(1200, 768);
// output: 1.5625