<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:ming.v.hua@qq.com" title="Ming Hua <ming.v.hua@qq.com>"> <span class="fn">Ming Hua</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Incorrect bounds on formula DEC2HEX"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=139173">bug 139173</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Blocks</td>
           <td>
                
           </td>
           <td>108827
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>NEW
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>erack@redhat.com, ming.v.hua@qq.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Incorrect bounds on formula DEC2HEX"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=139173#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Incorrect bounds on formula DEC2HEX"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=139173">bug 139173</a>
              from <span class="vcard"><a class="email" href="mailto:ming.v.hua@qq.com" title="Ming Hua <ming.v.hua@qq.com>"> <span class="fn">Ming Hua</span></a>
</span></b>
        <pre>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 <a href="show_bug.cgi?id=139173#c1">comment #1</a>)
<span class="quote">> Unless you consider functions DEC2BIN, DEC2OCT, DEC2HEX are MS
> functions? (but I don't see doc about this).</span >
MS has support page for DEC2HEX:
<a href="https://support.microsoft.com/en-us/office/dec2hex-function-6344ee8b-b6b5-4c6a-a672-f64666704619">https://support.microsoft.com/en-us/office/dec2hex-function-6344ee8b-b6b5-4c6a-a672-f64666704619</a>

I believe this is Eike's area of expertise, adding him to CC.</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Calc functions bugs and enhancements"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108827">Bug 108827</a>] [META] Calc functions bugs and enhancements
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>