I am counting the primitive operations a piece of code and I am not sure if converting units counts as another operation. For example, converting the units to int:
int avg = (int) (high - low);
Without counting the cast, there are 2 operations in this code. The assignment of avg and the arithmetic. Am I supposed to count the cast too?