T
TS
I have this simple equation that returns a boolean:
if( ti.NumberIncorrect > (TotalQuestions - (TotalQuestions *
FailurePercentage) ))
ti.NumberIncorrect is int : 4
TotalQuestions is int : 20
FailurePercentage is float : 80
When the code runs, it evaluates to true incorrectly. When I put this exact
expression in the watch or immediate window, it evaluates correctly to
false. I tried to cast TotalQuestions and ti.NumberIncorrect to float, but
this didn't help
What is going on here?
if( ti.NumberIncorrect > (TotalQuestions - (TotalQuestions *
FailurePercentage) ))
ti.NumberIncorrect is int : 4
TotalQuestions is int : 20
FailurePercentage is float : 80
When the code runs, it evaluates to true incorrectly. When I put this exact
expression in the watch or immediate window, it evaluates correctly to
false. I tried to cast TotalQuestions and ti.NumberIncorrect to float, but
this didn't help
What is going on here?