From 345959177f67807963de1c56534c89df149bdf2a Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 1 Mar 2021 10:02:02 +0100 Subject: Max ceiling precision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We used to round the ceilings for the individual tissues with %.1f but the maximal (and thus effective) ceiling only with %.0f. This makes no sense or be rounded up (to the conservative side). This commit shows also the maximal ceiling with higher accuracy. Reported-by: Peter Hübner Signed-off-by: Robert C. Helling --- core/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/profile.c b/core/profile.c index 5b5d98b2d..3b214f4ab 100644 --- a/core/profile.c +++ b/core/profile.c @@ -1538,7 +1538,7 @@ static void plot_string(const struct dive *d, const struct plot_info *pi, int id put_format(b, translate("gettextFromC", "Surface GF %.0f%%\n"), entry->surface_gf); if (entry->ceiling) { depthvalue = get_depth_units(entry->ceiling, NULL, &depth_unit); - put_format_loc(b, translate("gettextFromC", "Calculated ceiling %.0f%s\n"), depthvalue, depth_unit); + put_format_loc(b, translate("gettextFromC", "Calculated ceiling %.1f%s\n"), depthvalue, depth_unit); if (prefs.calcalltissues) { int k; for (k = 0; k < 16; k++) { -- cgit v1.2.3-70-g09d2