bugGNU Octave - Bugs: bug #48804, int64 almost double??

 
 

bug #48804: int64 almost double??

Submitter:  Ernst Reissner <ernstreissner>
Submitted:  Tue 16 Aug 2016 11:27:08 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 17 Aug 2016 05:23:03 AM UTC, comment #1: 

I think this is a duplicate of bug #45945.

Octave's int64 variables are stored as 64-bit integers, not doubles.  The problem is with parsing large integer constants and converting them all to double.

John W. Eaton <jwe>
Group administrator
Tue 16 Aug 2016 11:27:08 PM UTC, original submission:  

The maximum int64 is

octave:30> int64(0x7FFFFFFFFFFFFFFF)
ans = 9223372036854775807

ok.
but:

octave:35> int64(0x7FFFFFFFFFFFFFF0)
ans = 9223372036854775807
octave:36> int64(0x7FFFFFFFFFFFFF00)
ans = 9223372036854775807
octave:39> int64(0x7FFFFFFFFFFFFC00)
ans = 9223372036854774784
octave:40> int64(0x7FFFFFFFFFFFFE00)

The latter numbers should all be even, right?
I suspect, Octave's int64 are double with only 53 digit mantissa.

Ernst Reissner <ernstreissner>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by ernstreissner (Submitted the item)
  • -email is unavailable- added by ernstreissner
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-17 mtmiller Dependencies- Depends on bugs #45945
    2016-08-17 jwe StatusNone Duplicate
        Open/ClosedOpen Closed
    2016-08-16 ernstreissner Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code