<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 - A CALC cell formated as "percent" (-12.95%) returns wrong number."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=133485">133485</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>A CALC cell formated as "percent" (-12.95%) returns wrong number.
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.4.4.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (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>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dheif@compuserve.com
</td>
</tr></table>
<p>
<div>
<pre>Description:
using LibreOffice Version: 6.4.4.2 (x64) Build ID:
3d775be2011f3886db32dfd395a6a6d1ca2630ff
in which a cell formated as "percent" (-12.95%) returns wrong number.
Entering a '2' results in showing 2%.
Entering a '.2' results in showing 20% instead of 0.20% as expected.
If I enter '.002' the result shows 0.20% which appears to be the correct number
used in calculating the math.
Steps to Reproduce:
1. format cell "percent" (-12.95%)
2. enter '2' in this cell
3. view = 2%
4. enter '.2' in this cell
5. view = 20%
6. enter .002 in this cell
7. view = 0.20%
Actual Results:
explained above
Expected Results:
I would expect that entering '.2' would result in a view which would indicate
two-tenths of a percent, not twenty percent. This has been true for quite some
time and I have simply adjusted by entering the raw number indicating the
actual mathmatical number I need. Evidently whole numbers are all that are
calculated so '.2' would indeed be calculated as 20% even though it was meant
to be used as 2/10%.
Reproducible: Always
User Profile Reset: No
Additional Info:
If I enter '=.2/100' in the percent formatted cell I do get the proper view of
0.20%. Live and learn!</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>