Round a Float to # of Significant Digits Following The Decimal Point
Thursday, February 22nd, 2007
Unfortunately, this next couple of weeks I get to do some development in C, and have ran into the always lovely issue of rounding a floating point number within a given # of significant digits. First, the need to do this usually stems from the fact that atof(char*) or strtof(char*,char**) return values one wouldn’t [...]

