2006/10/22, Larry Clapp <larry at theclapp.org>: > static double > round_double(double d) > { > if (d > 0) { > double q = floor(q + 0.5); Ooops. Stupid typo. Funny that on four platforms it gave the right result :-/ Juanjo