Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1031

Wrong canonical representation of the float special values 0 and -0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.6.2
    • None
    • XML Schema API
    • None
    • Java 1.4
      Linux Red Hat 7.1

    Description

      for example,
      if I am constraining a float type with a facet minInclusive = "-0",
      the getLexicalFacetVAlue gives 0.0E1 as value of this facet.

      The http://www.w3.org/TR/2001/REC-xmlschema-2-20010502 recommends :

      "The special values positive and negative zero, positive and negative infinity and not-a-number have lexical representations 0, -0, INF, -INF and NaN, respectively"

      These special values must not be changed, else it would be a semantic change

      Attachments

        Activity

          People

            Unassigned Unassigned
            lemoyne Jérôme LEMOYNE
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: