The compiler looks at the data types used in a computation and uses the arithmetic that matches those values.
If there are mixed data types, there are rules the compiler uses to chose which type of...
Type: Posts; User: Norm
The compiler looks at the data types used in a computation and uses the arithmetic that matches those values.
If there are mixed data types, there are rules the compiler uses to chose which type of...
Check that your code is NOT doing integer arithmetic. For example 5/6 = 0 vs 5.0/6 = 0.833333
To force the compiler to use floating point arithmetic multiply a value by by 1.0 before dividing.