[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #37733] dec2hex errors out if fed integers.
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #37733] dec2hex errors out if fed integers. |
Date: |
Wed, 14 Nov 2012 18:28:57 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20121020 Iceweasel/3.5.16 (like Firefox/3.5.16) |
URL:
<http://savannah.gnu.org/bugs/?37733>
Summary: dec2hex errors out if fed integers.
Project: GNU Octave
Submitted by: None
Submitted on: Wed 14 Nov 2012 06:28:55 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: j
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.4
Operating System: GNU/Linux
_______________________________________________________
Details:
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:
> dec2hex(2)
ans = 2
> dec2hex(int32(2))
error: octave_base_value::log (): wrong type argument `int32 scalar'
error: evaluating argument list element number 1
error: evaluating argument list element number 1
error: called from:
error: /usr/share/octave/3.2.4/m/strings/dec2base.m at line 80, column 9
error: /usr/share/octave/3.2.4/m/strings/dec2hex.m at line 46, column 12
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37733>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #37733] dec2hex errors out if fed integers.,
anonymous <=