Changeset b585f65 in subsurface


Ignore:
Timestamp:
Apr 1, 2017, 8:06:09 AM (3 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
919cfc9d
Parents:
5174ac5
git-author:
Miika Turkia <miika.turkia@…> (03/28/17 21:23:11)
git-committer:
Dirk Hohndel <dirk@…> (04/01/17 08:06:09)
Message:

Limit precision for temperature in CSV import

Signed-off-by: Miika Turkia <miika.turkia@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/manualcsv2xml.xslt

    r5174ac5 rb585f65  
    242242                </xsl:when>
    243243                <xsl:otherwise>
    244                   <xsl:value-of select="(translate(translate($air, translate($air, '1234567890,.', ''), ''), ',', '.') - 32) * 5 div 9"/>
     244                  <xsl:value-of select="format-number((translate(translate($air, translate($air, '1234567890,.', ''), ''), ',', '.') - 32) * 5 div 9, '#.#')"/>
    245245                </xsl:otherwise>
    246246              </xsl:choose>
     
    260260                </xsl:when>
    261261                <xsl:otherwise>
    262                   <xsl:value-of select="(translate(translate($water, translate($water, '1234567890,.', ''), ''), ',', '.') - 32) * 5 div 9"/>
     262                  <xsl:value-of select="format-number((translate(translate($water, translate($water, '1234567890,.', ''), ''), ',', '.') - 32) * 5 div 9, '#.#')"/>
    263263                </xsl:otherwise>
    264264              </xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.