<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 - Typename function does not return the correct data type of a numeric constant"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=129596">129596</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Typename function does not return the correct data type of a numeric constant
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>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>BASIC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>andreas.heinisch@yahoo.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:


Steps to Reproduce:
The following snippet shows the error in detail:

Sub Main

dim intDecimal as integer
intDecimal = 32767 
dim intHexDecimal as integer
intHexDecimal = &h7FFF

dim lngDecimal as long
lngDecimal = 1048575
dim lngHexDecimal as long
lngHexDecimal = &hFFFFF

' outputs 32767 32767 1048575 1048575
Print intDecimal, intHexDecimal, lngDecimal, lngHexDecimal

' outputs Integer Integer Long Long
Print Typename(intDecimal), Typename(intHexDecimal), Typename(lngDecimal),
Typename(lngHexDecimal) 

' outputs Integer Integer Doube Double
Print Typename(32767), Typename(&h7FFF), Typename(1048575), Typename(&hFFFFF)

End Sub

Actual Results:


Expected Results:



Reproducible: Always


User Profile Reset: No



Additional Info:</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>