From 006c8f9cf27f5010b45541d4e28a90e1f475cb12 Mon Sep 17 00:00:00 2001 From: SiboVG Date: Fri, 24 Jun 2022 01:18:19 +0200 Subject: [PATCH] [#1441] Increase CA drag characteristics precision to 3 decimals --- .../net/sf/openrocket/gui/dialogs/ComponentAnalysisDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swing/src/net/sf/openrocket/gui/dialogs/ComponentAnalysisDialog.java b/swing/src/net/sf/openrocket/gui/dialogs/ComponentAnalysisDialog.java index f2acf6347..da24d6c90 100644 --- a/swing/src/net/sf/openrocket/gui/dialogs/ComponentAnalysisDialog.java +++ b/swing/src/net/sf/openrocket/gui/dialogs/ComponentAnalysisDialog.java @@ -674,7 +674,7 @@ public class ComponentAnalysisDialog extends JDialog implements StateChangeListe // A drag coefficient double cd = (Double) value; - this.setText(String.format("%.2f (%.0f%%)", cd, 100 * cd / totalCD)); + this.setText(String.format("%.3f (%.0f%%)", cd, 100 * cd / totalCD)); float r = (float) (cd / 1.5);