Because the sigDigits cannot be reversed, I recommend that you don’t use it on the variables, and only apply sigDigits to the computer screen output instead.
function gameDetails(lessthan) {
var maxwin = 8000000;
var multi = 65536 / lessthan * .99, 5;
var maximum = maxwin / multi;
var odds = lessthan / 65536 * 100
}
So to reverse those, we’ve done lessthan already to get
lessthan = 0.99 * 65536 / multi
Let’s do the others too.
With maximum, we already have a value for maxwin, so we can solve for multi:
maximum = maxwin / multi
Invert both sides to get:
1 / maximum = multi / maxwin
Then multiply by maxwin to get:
maxwin / maximum = multi
Which gives us:
multi = maxwin / maximum;
We can use the same maximum formula to solve for maxwin too:
maximum = maxwin / multi
Just multiply by multi to get:
maximum * multi = maxwin
Which gives us:
maxwin = maximum * multi
And lastly we can solve for lessthan
odds = lessthan / 65536 * 100
Divide by 100 to get:
odds / 100 = lessthan / 65536
And multiply by 65536:
odds * 65536 / 100 = lessthan
Giving an end result of:
odds * 65536 / 100 = lessthan
All of these formulas put together are:
lessthan = odds * 65536 / 100
maxwin = maximum * multi
maximum = maxwin / multi
You say that you have the odds and the multiplier, and you want to get the three other values, those being lessthan, maxwin, and maximum.
With odds we can get lessthan, but that doesn’t give us anything to help us get further. maxwin forms a triangle with maximum and multi. With one missing we can solve for that, but with two missing it’s not possible gain any further results.