[chronojump] Sprint export positions with decimals working
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Sprint export positions with decimals working
- Date: Thu, 25 Mar 2021 19:06:17 +0000 (UTC)
commit 3d07a543c6069ba409a645e679c8304b51fd941e
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Mar 25 20:05:59 2021 +0100
Sprint export positions with decimals working
src/sprint.cs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/sprint.cs b/src/sprint.cs
index 973ff795..6a3d62b2 100644
--- a/src/sprint.cs
+++ b/src/sprint.cs
@@ -256,8 +256,9 @@ public class SprintRGraphExport
double mass, double personHeight,
string personName, double tempC)
{
- // ; will be _ to differentiate from other ;
- this.positions = "0_" + Util.ChangeChars(positions, ";", "_");
+ //if decimal is comma, will be converted to point for R, and also the ; will be _ to
differentiate from other ;
+ this.positions = "0_" + Util.ChangeChars(
+ Util.ChangeChars(positions, ",", "."), ";", "_");
//if decimal is comma, will be converted to point for R, and also the ; will be _ to
differentiate from other ;
this.splitTimes = "0_" + Util.ChangeChars(
Util.ChangeChars(splitTimes, ",", "."), ";", "_");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]