Uploaded image for project: 'Marmotta (Retired)'
  1. Marmotta (Retired)
  2. MARMOTTA-628

Arithmetic operation in SPARQL use wrong operator precedence

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3.0
    • 3.4.0
    • KiWi Triple Store
    • None

    Description

      The following query:

      SELECT ( (4.5-4.4)*0.1 as ?c )  WHERE {}

      should return 0.01, but currently gives 4.06.

      So it looks it actually does

      4.5 - 4.4 * 0.1)

      so

      4.5 - (4.4*0.1)

      where parenthesis look to be ignored/removed from the calculation.

      Attachments

        Issue Links

          Activity

            People

              wikier Sergio Fernández
              wikier Sergio Fernández
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified