[chronojump] force sensor analyze variability and error (feedback) with 3 decimals
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] force sensor analyze variability and error (feedback) with 3 decimals
- Date: Thu, 27 Jun 2019 16:05:40 +0000 (UTC)
commit 55bdd034492bb343dd4a17295c5b3a7e9241800c
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Jun 27 18:05:15 2019 +0200
force sensor analyze variability and error (feedback) with 3 decimals
src/gui/forceSensorAnalyze.cs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/forceSensorAnalyze.cs b/src/gui/forceSensorAnalyze.cs
index 155a1e7a..7be5790d 100644
--- a/src/gui/forceSensorAnalyze.cs
+++ b/src/gui/forceSensorAnalyze.cs
@@ -1009,8 +1009,8 @@ public partial class ChronoJumpWindow
fsAI.CalculateVariabilityAndAccuracy(hscaleLower, hscaleHigher, feedbackF, out
variability, out feedbackDiff);
- layout_force_ai_text.SetMarkup(string.Format("Variability: {0:0.#} N",
- Math.Round(variability, 1) ));
+ layout_force_ai_text.SetMarkup(string.Format("Variability: {0:0.###} N",
+ Math.Round(variability, 3) ));
layout_force_ai_text.GetPixelSize(out textWidth, out textHeight);
force_sensor_ai_pixmap.DrawLayout (pen_black_force_ai,
@@ -1020,8 +1020,8 @@ public partial class ChronoJumpWindow
// 12) calculate and paint Accuracy (Feedback difference)
if(feedbackF > 0)
{
- layout_force_ai_text.SetMarkup(string.Format("Error (Feedback): {0:0.#} N",
- Math.Round(feedbackDiff, 1) ));
+ layout_force_ai_text.SetMarkup(string.Format("Error (Feedback): {0:0.###} N",
+ Math.Round(feedbackDiff, 3) ));
layout_force_ai_text.GetPixelSize(out textWidth, out textHeight);
force_sensor_ai_pixmap.DrawLayout (pen_black_force_ai,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]