I want to say minimum value for X is 1000. now X can be anything. so M would be the multiplier of X so that M*X >= 1000. What would be the mathematic way of doing this without using if statement?
M = 1;
X = 1000;
if(X < 1000) M = 1000/X;
X = M*X;
I want something like
$M = 1000/X$
$X = M*X;$
But this means X is always 1000. its not minimum.
I'm just being curios of what could be the expression without if statement.
X. I stuck to this idea but used a more generic symbol for assignment. – May 15 '17 at 11:03