Merge pull request #1476 from SiboVG/issue-1441

[#1441] Increase component analysis drag characteristics precision to 3 decimals
This commit is contained in:
SiboVG 2022-06-24 01:20:48 +02:00 committed by GitHub
commit f4305188f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);