[Libreoffice-bugs] [Bug 139173] Incorrect bounds on formula DEC2HEX

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Dec 23 11:55:51 UTC 2020


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

Ming Hua <ming.v.hua at qq.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |108827
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
                 CC|                            |erack at redhat.com,
                   |                            |ming.v.hua at qq.com

--- Comment #2 from Ming Hua <ming.v.hua at qq.com> ---
I can reproduce the reported inconsistency with 7.1.0 Beta1, i.e.:

DEC2BIN(2^9) and DEC2BIN(-(2^9)-1) gives Err:502
DEC2HEX(2^39) gives "8000000000" and DEC2HEX(-(2^39)-1) gives "7FFFFFFFFF", not
errors

Version: 7.1.0.0.beta1 (x64)
Build ID: 828a45a14a0b954e0e539f5a9a10ca31c81d8f53
CPU threads: 2; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: zh-CN (zh_CN); UI: zh-CN
Calc: threaded

Also both DEC2HEX(2^39) and DEC2HEX(-(2^39)) gives "8000000000", so this is
definitely a bug.

(In reply to Julien Nabet from comment #1)
> Unless you consider functions DEC2BIN, DEC2OCT, DEC2HEX are MS
> functions? (but I don't see doc about this).
MS has support page for DEC2HEX:
https://support.microsoft.com/en-us/office/dec2hex-function-6344ee8b-b6b5-4c6a-a672-f64666704619

I believe this is Eike's area of expertise, adding him to CC.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=108827
[Bug 108827] [META] Calc functions bugs and enhancements
-- 
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/20201223/94af8dda/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list