This is not for the faint hearted.
The problem. I need a formula to convert degrees C to degrees F.
I already know the easiest formula of (1.8 * degrees C) + 32 = degrees F.
I run into a messy formula because I have to apply the above formula to a number that is to be calculated before the above formula is applied.
Now if you are still awake, I only need to apply the formula if an other condition is met otherwise simply multiply the first number is all that is required.
Example to follow.
When condition is met:-
(char *)buffer[0] = raw data.
raw data * 0.1 = degrees C
(degrees C * 1.8) + 32 = degrees F
Otherwise:-
(char *)buffer[0] = raw data.
raw data * 0.1 = degrees C
Can I make this into a simple if(statement) that can be used many times when required.
I am writing this in C++.
OK. I think I have just answered my own question. I have been looking at too long now.

Thanks anyway.