Closed RyanKruse closed 4 years ago
Describe the bug in detail: An arithmetic error occurs when doing a math equation.
Provide steps/code to reproduce the bug: int a = 5 int b = 11
debugText.text = "Math Equation: " + (a / (b - 1));
Expected behavior: Expected result should equal 0.5.
Additional Information: Instead the result shows to be 0.
You're doing Integer math so the actual results are correct, see Integer division for more info.
Oops, yeah that'll do it. Thanks.
Describe the bug in detail: An arithmetic error occurs when doing a math equation.
Provide steps/code to reproduce the bug: int a = 5 int b = 11
debugText.text = "Math Equation: " + (a / (b - 1));
Expected behavior: Expected result should equal 0.5.
Additional Information: Instead the result shows to be 0.