Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
You converted your ASCII numberical value to a Floating-Point value with...
floatValue = atof(buffer); // this returns the same value!!!
So just multiply the result by two!
floatValue *= 2.0f;
Or did I miss what you were really asking for?
wildgoose
Practically a Posting Shark
896 posts since Jun 2009
Reputation Points: 546
Solved Threads: 99