question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

intensity.math to calculate an inverted percentage

See original GitHub issue

Hi,

I couldn’t find something that helps me, that’s why I am asking. I’d like to use intensity.math to calculate an inverted percentage. Say, when I get 60% it shall calculate 100-60=40. So I tried this statement ${intensity.math(100-${intensity.percent}} As this doesn’t do the trick, I was looking in the documentation and saw something with “X” so I tried 100-X, which wasn’t bringing a good result, either. So I wonder what “X” is and I also would love to get some hint on how to find a solution for the inverted percentage calculation.

Many thanks in advance.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bwssytemscommented, Jan 6, 2017

@peterosburg Sorry, yes ‘X’ is used in the code to insert the value received.

0reactions
bwssytemscommented, Jan 23, 2017

Is this resolved?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to calculate a reverse percentage? What is the formula
Just add the percentage increase to 100, divide 100 by it, then multiple by the final number to get the original number. Example....
Read more >
Calculate the Intensity When dB (Decibel) Value is Given
This video calculates the intensity value for a sound when the decibel db is given. Introductory General Physics IProf. Greg Clements.
Read more >
Sound Intensity Level in Decibels & Distance - Physics Problems
This physics video tutorial provides a basic introduction into sound intensity level in decibels. it explains how to calculate the sound ...
Read more >
Sound Intensity Physics Problems & Inverse Square Law ...
This physics video tutorial provides a basic introduction into sound intensity and the inverse square law. It explains how to solve physics ...
Read more >
Reverse Percentages Explained - Worked Example 2 - YouTube
We learn a step by step method for solving reverse percentage problems. We work through a reverse percentage decrease problem in three ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found