diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2017-05-09 22:56:57 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-12 14:05:33 -0700 |
commit | a489b3fa426b02dc58e23f2f3aa87490be540417 (patch) | |
tree | 31d13538ce4593b5c49ccffaf658253402846c99 /xslt/xml2csv.xslt | |
parent | 726c9e859c60d6506b4b7c9a5a8bd909486ca9f7 (diff) | |
download | subsurface-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/xml2csv.xslt')
-rw-r--r-- | xslt/xml2csv.xslt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/xml2csv.xslt b/xslt/xml2csv.xslt index 093f8ea81..211597325 100644 --- a/xslt/xml2csv.xslt +++ b/xslt/xml2csv.xslt @@ -34,10 +34,10 @@ <xsl:value-of select="$fs"/> <xsl:choose> <xsl:when test="$units = 1"> - <xsl:value-of select="concat('"', format-number((substring-before(@depth, ' ') div 0.3048), '#.#'), ' ft"')"/> + <xsl:value-of select="concat('"', round((substring-before(@depth, ' ') div 0.3048) * 1000) div 1000, ' ft"')"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select="concat('"', substring-before(@depth, ' '), '"')"/> + <xsl:value-of select="concat('"', round(substring-before(@depth, ' ') * 1000) div 1000, '"')"/> </xsl:otherwise> </xsl:choose> |