log10() / num2str() with int32 issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

log10() / num2str() with int32 issue

schi

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
_______________________________________________
Help-octave mailing list
[hidden email]
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave