[chronojump] Print stiffness as double (could be too big for an int on a really tiny tc DJ)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Print stiffness as double (could be too big for an int on a really tiny tc DJ)
- Date: Fri, 16 Sep 2016 08:29:44 +0000 (UTC)
commit 2195dc23003343774c70f35d0ba766148f1895f5
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Sep 16 10:22:07 2016 +0200
Print stiffness as double (could be too big for an int on a really tiny tc DJ)
src/treeViewJump.cs | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/treeViewJump.cs b/src/treeViewJump.cs
index 60a61f2..d5b7965 100644
--- a/src/treeViewJump.cs
+++ b/src/treeViewJump.cs
@@ -389,10 +389,9 @@ public class TreeViewJumpsRj : TreeViewJumps
if (preferences.showStiffness) {
//use directly Util.GetStiffness because we want to get from this specific subjump,
not all the reactive jump.
if(Convert.ToDouble(thisTc) > 0) {
- //show as integer in treeview, but let the other parts of the software
(export) to show it as double
- myData[count++] = Convert.ToInt32(
+ myData[count++] = Util.TrimDecimals(
Util.GetStiffness(personWeight, weightInKg,
Convert.ToDouble(thisTv), Convert.ToDouble(thisTc))
- ).ToString();
+ .ToString(), 1);
}
else
myData[count++] = "";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]