0
$\begingroup$

I am trying to write a calculation for a program code but cannot figure out how the math would work. My goal is to have a calculation that would read something like value A is greater than value b by 300% or more.

I know this is a mathematics forum but if it helps the code is in python and would be an if statement like:

if value a is greater than value b by 300% or more then violation, else not a violation. 
  • 2
    $300\%$ of $b$? So for example, if $b=3$, do you want $a$ at most $3+9=12$?2012-09-19