[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36121] num2str(2.4e9, 15) gives incorrect res
From: |
Sebastian Held |
Subject: |
[Octave-bug-tracker] [bug #36121] num2str(2.4e9, 15) gives incorrect result |
Date: |
Sun, 08 Apr 2012 10:33:52 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20100101 Firefox/9.0 |
Follow-up Comment #2, bug #36121 (project octave):
My octave 3.2.4 on Ubuntu Precise (and Natty, both 32bit) does also not show
this problem, but on my 64bit gentoo box this happens:
octave:1> version
ans = 3.6.1
octave:2> sprintf('%d',double(intmax))
ans = 2147483647
octave:3> sprintf('%d',double(intmax)+1)
ans = -2147483648
But I have reports from two other people seeing this problem (see thread at
http://openems.de/forum/viewtopic.php?f=2&t=24&p=146#p146 )
May it be possible that this only shows up on 64 bit systems?
By the way:
octave:1> which num2str
`num2str' is a function from the file
/usr/share/octave/3.6.1/m/general/num2str.m
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36121>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/