Jump to content

This topic is 7500 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

How do I go about Rounding the result of a calculation? Here is my calculation:

(weight / (height * height))* 703

I know to use the Round Function but I am not sure where in my calculation it goes?

Thx

Posted

Round( your calc, precision ) => Round(weight * 703/(height * height), 0) would round the result to an integer.

Posted

that worked on that calculation Queue but I am still getting 4 decimal places on this calculation:

Round (66 + (13.7 * (weight / 2.2)) + (5 * (height * 2.54)) - (6.8 * age);1)* Case( active_level = "sedentary"; 1.2; active_level = "light"; 1.375; active_level = "moderate"; 1.55; active_level = "very"; 1.725; active_level = "extra"; 1.9 )

That seems strange?

Thank You!!

Posted

Round needs to encompass the full calculation.

Round ( 66 + (13.7 * (weight / 2.2)) + (5 * (height * 2.54)) - (6.8 * age) * Case( active_level = "sedentary"; 1.2; active_level = "light"; 1.375; active_level = "moderate"; 1.55; active_level = "very"; 1.725; active_level = "extra"; 1.9 ); 1 )

This topic is 7500 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.