Largest number in Matlab

조회 수: 58 (최근 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
  댓글 수: 1
Yung Xi
Yung Xi 2019년 10월 24일
what is that calculated i.e. exact integer?

댓글을 달려면 로그인하십시오.


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