I can't seem to find a definitive explanation of the rules for implicit int to float type conversion when an expression contains one float value and several int values, and also several operators. All of the examples are of an expression with just operator and two operands.
From the operation of my program, it appears that the type conversion from int to float only occurs on an operator by operator basis, not on an expression wide basis.
For example, this relevant part of my code works as expected:
while this results in a value of zero for a/64:Code:float action[NSTRINGS]; void adjustsetup(int a) // a has value of either 1 or -1 { ... action[string] = action[string] + a / 64.0; ... }
So the presence of the float action[string], in the expression does not automatically convert the int a and the constant 64?Code:float action[NSTRINGS]; void adjustsetup(int a) // a has value of either 1 or -1 { ... action[string] = action[string] + a / 64; ... }
Each operator and it's two operands are treated individually for determining type conversion?
-