TotalInsanity
Programmer
Hello again all.
Some more beautiful advice needed please from all of you professional coders :O)
If I have three double values: 3.55, 3.47, 2.24.
I want to take the first double value of 3.55 and find which of the other two values: 3.47, 2.24 is the closest match to the first given value.
I understand this in English, lol, that 3.47 would come out but to compare the values using c++ code, how would I do that?
Any help would be vastly appreciated!
Thanks in Advance.
Some more beautiful advice needed please from all of you professional coders :O)
If I have three double values: 3.55, 3.47, 2.24.
I want to take the first double value of 3.55 and find which of the other two values: 3.47, 2.24 is the closest match to the first given value.
I understand this in English, lol, that 3.47 would come out but to compare the values using c++ code, how would I do that?
Any help would be vastly appreciated!
Thanks in Advance.