SyntaxFix
Write A Post
Hire A Developer
Questions
aspectRatio = width / height
if that is what you're after. You can then multiply it by one of the dimensions of the target space to find out the other (that maintains the ratio) e.g.
widthT = heightT * aspectRatio heightT = widthT / aspectRatio