summaryrefslogtreecommitdiffstats
path: root/xslt/csv2xml.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-05-09 22:56:57 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-12 14:05:33 -0700
commita489b3fa426b02dc58e23f2f3aa87490be540417 (patch)
tree31d13538ce4593b5c49ccffaf658253402846c99 /xslt/csv2xml.xslt
parent726c9e859c60d6506b4b7c9a5a8bd909486ca9f7 (diff)
downloadsubsurface-a489b3fa426b02dc58e23f2f3aa87490be540417.tar.gz
Rounding imperial export for profile
Precision for the rounding is more than makes sense, but this satisfied the test case. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt/csv2xml.xslt')
-rw-r--r--xslt/csv2xml.xslt2
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt
index e3864025e..fd08c8b57 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -327,7 +327,7 @@
<xsl:value-of select="translate($depth, ',', '.')"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="translate(translate($depth, translate($depth, '0123456789,.', ''), ''), ',', '.') * 0.3048"/>
+ <xsl:value-of select="round(translate(translate($depth, translate($depth, '0123456789,.', ''), ''), ',', '.') * 0.3048 * 1000) div 1000"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>