bugGNU Octave - Bugs: bug #37733, dec2hex errors out if fed integers.

 
 

bug #37733: dec2hex errors out if fed integers.

Submitted by:  None
Submitted on:  Wed 14 Nov 2012 06:28:55 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: jOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.2.4
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 14 Nov 2012 07:50:35 PM UTC, comment #2:

That's a very quick response.

I'm fine. (I just cast to a double before calling
dec2hex, and it Works For Me.) I filed the bug in
the hopes that it would get patched up in future
releases. It appears that the future is closer
than I expected.

j

Anonymous
Wed 14 Nov 2012 06:39:08 PM UTC, comment #1:

This has been fixed in recent versions of Octave.

It looks like you're using Ubuntu. Please upgrade to Ubuntu 12.10 where Octave 3.6 is available that has this fix. Alternatively, try this PPA:

https://launchpad.net/~mtmiller/+archive/octave

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Wed 14 Nov 2012 06:28:55 PM UTC, original submission:

The help for dec2hex claims it to:

"Return the hexadecimal string corresponding to the non-negative integer N."

If fed an actual integer type, it dies a horrible death when trying to take the natural log in the dec2base script it calls.
As shown thusly:

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jordigh (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 14 Nov 2012 06:39:08 PM UTCjordighStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1