help-octave
[Top][All Lists]
Advanced

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

uint64 typecast can't be initialised with more than 15 decimal positions


From: Yury T.
Subject: uint64 typecast can't be initialised with more than 15 decimal positions
Date: Mon, 4 Mar 2013 06:29:09 -0800 (PST)

In theory, uint64 could be initialised with numbers up to (4G)^2-1 (20
decimal positions).

In reality, only 15 decimal positions can be input correctly -- demonstrated
by the following snip (checked on 3.6.2 version):

a = uint64( 999999999999999 ) * 10000
b = uint64( 9999999999999999 )
a = a + 1
b = b+1

I feel the fix would be elementary, but the possible implications make me
stop and think -- is there a possibility to check the correctness of integer
arithmetics in 64 bits?




--
View this message in context: 
http://octave.1599824.n4.nabble.com/uint64-typecast-can-t-be-initialised-with-more-than-15-decimal-positions-tp4650508.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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