help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

log10() / num2str() with int32 issue


From: Schirmacher, Rolf
Subject: log10() / num2str() with int32 issue
Date: Thu, 4 Nov 2010 21:00:23 +0100

Hello,

running 3.2.4 on windows, I have the following issue with num2str() from the
"general" package:

octave.exe> num = 7
num =  7
octave.exe> num2str(num)
ans = 7
octave.exe> num2str(int32(num))
error: octave_base_value::log10 (): wrong type argument `int32 scalar'
error: evaluating argument list element number 1
error: evaluating argument list element number 1
error: called from:
error:
c:\Programme\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\general\num2str.m
at line 162, column 8

Trying further, I get

octave.exe> log10(num)
ans =  0.84510
octave.exe> log10(int32(num))
error: octave_base_value::log10 (): wrong type argument `int32 scalar'


Is this intentional? 

Thanks,

Rolf


reply via email to

[Prev in Thread] Current Thread [Next in Thread]