Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-509

round() returns erronous result

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7, 1.8, 1.9
    • Fix Version/s: CurrentCVS
    • Component/s: XPathC
    • Labels:
      None
    • Environment:
      Linux airlibre 2.4.26-e2compr #19 SMP Wed Jul 28 14:04:02 EDT 2004 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux

      Description

      Stylesheet bug.xsl:
      <?xml version="1.0" encoding="UTF-8" ?>
      <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

      <xsl:template match="/">
      <xsl:value-of select="round(3294967992.4)"/>
      </xsl:template>

      </xsl:stylesheet>

      invocation:
      Xalan any.xml bug.xsl

      yields:
      <?xml version="1.0" encoding="UTF-8"?>-2147483648

      I expect:
      <?xml version="1.0" encoding="UTF-8"?>3294967992

        Attachments

        1. patch.txt
          2 kB
          David N Bertoni
        2. bug.xsl
          0.2 kB
          Martin Gadbois

          Activity

            People

            • Assignee:
              dbertoni David N Bertoni
              Reporter:
              mgadbois Martin Gadbois
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: