From: mfranz Date: Sun, 19 Feb 2006 13:59:39 +0000 (+0000) Subject: display deposit depths < 1mm correctly (although this is rather a X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f928df6cafd29c31054d6896448b59a3f98dc400;p=flightgear.git display deposit depths < 1mm correctly (although this is rather a theoretical problem :-) --- diff --git a/src/Main/metar_main.cxx b/src/Main/metar_main.cxx index 9cf37f901..c5ee10d75 100644 --- a/src/Main/metar_main.cxx +++ b/src/Main/metar_main.cxx @@ -269,7 +269,7 @@ void printReport(SGMetar *m) if ((s = rwy.getExtentString()) && strlen(s)) surface.push_back(s); if ((d = rwy.getDepth()) != NaN) { - sprintf(buf, "%.0lf mm", d * 1000.0); + sprintf(buf, "%.1lf mm", d * 1000.0); surface.push_back(buf); } if ((s = rwy.getFrictionString()) && strlen(s))