a question about numeric type

5 ビュー (過去 30 日間)
OLANDE
OLANDE 2016 年 1 月 26 日
回答済み: Walter Roberson 2016 年 1 月 26 日
If Old computer systems only relied on 4-bit bytes instead of 8. How many values could int8 and single hold then?

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 1 月 26 日
The same as at present. The underlying number of bits per byte does not affect the length of an aggregate whose length is fixed. uint8 means 8 bits no matter how many bits per byte the underlying architecture has. single means IEEE 754 Floating Point single precision, which is 32 bits no matter how many bits per byte the underlying architecture has.

Community Treasure Hunt

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

Start Hunting!

Translated by