25

I have a width: 240 I have aspect ratio: 2.40 I need to get the height based on those two variables. What's the formula?

2 Answers 2

73

Definition of the ratio:

ratio = width / height

Formula:

height = width / ratio = 240 / 2.40 = 100

2
11

example of calculating 2:40 . using javascript programming language.

var width = 240 ;
var rat1 = 2;
var rat2 = 40;

var ratio  = width / rat1;
var calculated_height = ratio * rat2;
1
  • Thanks for simple and easy understanding of finding other value ..if we have one and the ratio.. :) Jan 31, 2020 at 6:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.