MATLAB: Uint64() losts its mind

digitsintegerMATLABuint64

>> a=uint64(2^64) a = 18446744073709551615 >> b=uint64(2^64-1000) b = 18446744073709551615 >> a==b ans = 1 >>

Best Answer

Please see http://www.mathworks.com/matlabcentral/answers/39474-scalar-multiplication and expand the comments in the answer there to see a discussion.