[Libreoffice-bugs] [Bug 129596] New: Typename function does not return the correct data type of a numeric constant

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Dec 24 09:26:32 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=129596

            Bug ID: 129596
           Summary: Typename function does not return the correct data
                    type of a numeric constant
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: andreas.heinisch at yahoo.de

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:

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191224/0f51ae7d/attachment.htm>


More information about the Libreoffice-bugs mailing list