<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 - Incorrect result for len function for large numbers"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=108690">108690</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Incorrect result for len function for large numbers
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>5.3.3.2 release
</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>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>andycham+076@amazon.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Description:
I was checking my arithmetic on the length of string needed to hold the decimal
representation of a large number. I found Calc's view differed from mine. On
investigation there is a jump in the result of len for large integers.
Steps to Reproduce:
1.Create new spreadsheet
2.Format cell A1 as "number, -1235" (format code 0)
3.Paste the value 1801439850948200 into cell A1
4. Increase the width of column 1 until the whole number can be seen (not ###)
5. Insert the formula =len(a1) into cell B2
6. Observe the result 16 in B2.
7. Append a zero to the number in cell A1.
8. Observe the new length 20 in B2.
Actual Results:
20 (see step 8 above)
Expected Results:
17
Reproducible: Always
User Profile Reset: No
Additional Info:
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101
Firefox/54.0</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>