Largest number in Matlab

16 次查看(过去 30 天)
Yung Xi
Yung Xi 2019-10-24
回答: Steven Lord 2019-10-24
hi,
what is the largest un-signed integer in Matlab for my client?
thank you.

回答(3 个)

Marcel Kreuzberg
Marcel Kreuzberg 2019-10-24
max uint16 = 2^16-1
max int8 = 2^7-1

Marcel Kreuzberg
Marcel Kreuzberg 2019-10-24
65535
127

Steven Lord
Steven Lord 2019-10-24
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

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by