Largest number in Matlab

35 visualizaciones (últimos 30 días)
Yung Xi
Yung Xi el 24 de Oct. de 2019
Respondida: Steven Lord el 24 de Oct. de 2019
hi,
what is the largest un-signed integer in Matlab for my client?
thank you.

Respuestas (3)

Marcel Kreuzberg
Marcel Kreuzberg el 24 de Oct. de 2019
max uint16 = 2^16-1
max int8 = 2^7-1
  1 comentario
Yung Xi
Yung Xi el 24 de Oct. de 2019
what is that calculated i.e. exact integer?

Iniciar sesión para comentar.


Marcel Kreuzberg
Marcel Kreuzberg el 24 de Oct. de 2019
65535
127

Steven Lord
Steven Lord el 24 de Oct. de 2019
When you say "largest integer" do you mean the largest value you can store in any of the integer data types or the largest integer value you can store in any of the built-in data types?
If you're using Symbolic Math Toolbox you can create numbers even larger than you can create in double precision.
two = sym(2)
q = two^10000
isAlways(q > realmax) % true

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by