octave-maintainers
[Top][All Lists]
Advanced

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

Re: error in typecast documentation


From: Rik
Subject: Re: error in typecast documentation
Date: Fri, 19 Oct 2012 08:14:32 -0700

On 10/19/2012 06:01 AM, address@hidden wrote:
> Message: 5
> Date: Fri, 19 Oct 2012 01:52:21 -0500
> From: Abe <address@hidden>
> To: address@hidden
> Subject: an error in the page at
>       
> <http://www.gnu.org/software/octave/doc/interpreter/Built_002din-Data-Types.html>
>       
> Message-ID:
>       <address@hidden>
> Content-Type: text/plain; charset=UTF-8
>
> Quoting 
> <http://www.gnu.org/software/octave/doc/interpreter/Built_002din-Data-Types.html>:
>
>   An example of the use of typecast on a little-endian machine is
>
>           x = uint16 ([1, 65535]);
>           typecast (x, 'uint8')
>           ? [   0,   1, 255, 255]
>
>
> That`s actually big-endian.  Here`s little-endian output:
>
>   octave-3.4.0:20> v = uint16 ([1, 65535]);
>   octave-3.4.0:22> typecast (v, 'uint8')
>   ans =
>
>     1    0  255  255
10/19/12

Abe,

Thanks for pointing out that oversight.  I fixed it in this changeset
(http://hg.savannah.gnu.org/hgweb/octave/rev/69f45f3ab96a) on the stable
branch.  It may take a while before the HTML documentation on the website
gets updated.

--Rik


reply via email to

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