aboutsummaryrefslogtreecommitdiffstats
path: root/xslt/manualcsv2xml.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-03-29 07:23:11 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-01 08:06:09 -0700
commitb585f65d500c62f27ee276e93337620b2d8d7dc4 (patch)
tree6fe100788318a3edce024f3f79ec08f5f6bdf753 /xslt/manualcsv2xml.xslt
parent5174ac57bed18970b2511a10411c957e609cb7d7 (diff)
downloadsubsurface-b585f65d500c62f27ee276e93337620b2d8d7dc4.tar.gz
Limit precision for temperature in CSV import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt/manualcsv2xml.xslt')
-rw-r--r--xslt/manualcsv2xml.xslt4
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt
index 439391b68..c2554309e 100644
--- a/xslt/manualcsv2xml.xslt
+++ b/xslt/manualcsv2xml.xslt
@@ -241,7 +241,7 @@
<xsl:value-of select="$air"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="(translate(translate($air, translate($air, '1234567890,.', ''), ''), ',', '.') - 32) * 5 div 9"/>
+ <xsl:value-of select="format-number((translate(translate($air, translate($air, '1234567890,.', ''), ''), ',', '.') - 32) * 5 div 9, '#.#')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
@@ -259,7 +259,7 @@
<xsl:value-of select="$water"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="(translate(translate($water, translate($water, '1234567890,.', ''), ''), ',', '.') - 32) * 5 div 9"/>
+ <xsl:value-of select="format-number((translate(translate($water, translate($water, '1234567890,.', ''), ''), ',', '.') - 32) * 5 div 9, '#.#')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>