# HG changeset patch # User Rik # Date 1292607580 28800 # Node ID 567ca09a97aa6417590481ce7a43c13648e7471a # Parent 572a318eb715ae50b7b34b8302cb905f8a91bc39 Remove obsolete documentation about 64-bit integer arithmetic. diff -r 572a318eb715 -r 567ca09a97aa doc/ChangeLog --- a/doc/ChangeLog Thu Dec 16 19:57:13 2010 -0500 +++ b/doc/ChangeLog Fri Dec 17 09:39:40 2010 -0800 @@ -1,3 +1,8 @@ +2010-12-17 Rik + + * interpreter/numbers.txi: Remove obsolete documentation about 64-bit + integer arithmetic. + 2010-12-16 Rik * interpreter/doccheck/mk_undocumented_list: Update list of exception diff -r 572a318eb715 -r 567ca09a97aa doc/interpreter/numbers.txi --- a/doc/interpreter/numbers.txi Thu Dec 16 19:57:13 2010 -0500 +++ b/doc/interpreter/numbers.txi Fri Dec 17 09:39:40 2010 -0800 @@ -552,13 +552,6 @@ work on integers of the same type. So, it is possible to add two 32 bit integers, but not to add a 32 bit integer and a 16 bit integer. -The arithmetic operations on integers are performed by casting the -integer values to double precision values, performing the operation, and -then re-casting the values back to the original integer type. As the -double precision type of Octave is only capable of representing integers -with up to 53 bits of precision, it is not possible to perform -arithmetic with 64 bit integer types. - When doing integer arithmetic one should consider the possibility of underflow and overflow. This happens when the result of the computation can't be represented using the chosen integer type. As an example it is @@ -570,7 +563,7 @@ When doing integer division Octave will round the result to the nearest integer. This is different from most programming languages, where the result is often floored to the nearest integer. So, the result of -@code{int32(5)./int32(8)} is @code{1}. +@code{int32(5) ./ int32(8)} is @code{1}. @DOCSTRING(idivide) @@ -689,7 +682,7 @@ @noindent Instead of creating the @code{idx} array it is possible to replace -@code{data(idx)} with @code{data( data <= 2 )} in the above code. +@code{data(idx)} with @w{@code{data( data <= 2 )}} in the above code. Logical values can also be constructed by casting numeric objects to logical values, or by using the @code{true}