<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - XML Form Document: Adding two values of decimal-fields gives wrong decimalseparator"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116451">116451</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>XML Form Document: Adding two values of decimal-fields gives wrong decimalseparator
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0.0.2 rc
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>robert@familiegrosskopf.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=140674" name="attach_140674" title="Open the document, input some values to first and second field as described.">attachment 140674</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=140674&action=edit" title="Open the document, input some values to first and second field as described.">[details]</a></span>
Open the document, input some values to first and second field as described.

Open the attached document.
All fields of the XML-form are declared as "Decimal". "SumFirstSecond" is
defined as the sum of the first and the second field.
Put some new value to "FirstField" or "SecondField" like 6 or 7 or 8 ... Shows
the right sum in the field "SumFirstSecond".
Now add some values with decimal-places.
Gives wrong values and declares the sum isn't a decimal-value.

You could get a workaround with declaring the sum as a string and the right sum
will be shown - but will be saved with decimal-separator "," instead of "."

I have tried to change the language from German to English but haven't
recognized it will make any difference.

You could also see the value when clicking on Instance 1 > instanceData >
SumFirstSecond. The wrong decimalseparator could be seen there. If you try to
edit the element you could choose "Calculate" as the last condition. If you
open the editor for this condition you could see the value is right calculated
- with decimal-separator "."</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>