uint64() losts its mind?

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

1 Commento

A clue while I'm passing through:
eps(double(intmax('uint64')))
ans = 4096

Accedi per commentare.

 Risposta accettata

Più risposte (0)

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by