Hello all,
I have the following code below, that should return an integer:
<code>
$aspect_ratio = $imgprops[0] / $imgprops[1];
</code>
But var aspect_ratio comes back as 0. I need to maintain the decimal format of the value returned after dividing. I have checked imgprops[0] and [1] for valid values (which they do have). This has to be something obvious that I'm missing. Comments?