what is 2+2

1 回表示 (過去 30 日間)
Abdullah
Abdullah 2025 年 1 月 24 日
編集済み: Parag 2025 年 2 月 18 日
what is 2+2
  1 件のコメント
Ishaan
Ishaan 2025 年 1 月 24 日
4

サインインしてコメントする。

回答 (2 件)

Walter Roberson
Walter Roberson 2025 年 1 月 24 日
2 + 2
ans = 4
double(2) + double(2)
ans = 4
single(2) + single(2)
ans = single 4
sym(2) + sym(2)
ans = 
4
uint8(2) + uint8(2)
ans = uint8 4
int8(2) + int8(2)
ans = int8 4
uint16(2) + uint16(2)
ans = uint16 4
int16(2) + int16(2)
ans = int16 4
uint32(2) + uint32(2)
ans = uint32 4
int32(2) + int32(2)
ans = int32 4
uint64(2) + uint64(2)
ans = uint64 4
int64(2) + int64(2)
ans = int64 4

Parag
Parag 2025 年 1 月 27 日
編集済み: Parag 2025 年 2 月 18 日
Hi @Walter Roberson you skipped one case :)
string(2) + string(2)
ans = "22"

カテゴリ

Help Center および File ExchangeNumbers and Precision についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by