| Value Type | Precision | Bits (Bytes) |
|---|---|---|
| Integers, unsigned | uint | 32 (4) |
| uint8 | 8 (1) | |
| uint16 | 16 (2) | |
| uint32 | 32 (4) | |
| uint64 | 64 (8) | |
| uchar | 8 (1) | |
| unsigned char | 8 (1) | |
| ushort | 16 (2) | |
| ulong | system-dependent | |
| ubitn | 1 ≤ n ≤ 64 | |
| Integers, signed | int | 32 (4) |
| int8 | 8 (1) | |
| int16 | 16 (2) | |
| int32 | 32 (4) | |
| int64 | 64 (8) | |
| integer*1 | 8 (1) | |
| integer*2 | 16 (2) | |
| integer*3 | 32 (4) | |
| integer*4 | 64 (8) | |
| schar | 8 (1) | |
| signed char | 8 (1) | |
| short | 16 (2) | |
| long | system-dependent | |
| bitn | 1 ≤ n ≤ 64 | |
| Floating-point numbers | single | 32 (4) |
| double | 64 (8) | |
| float | 32 (4) | |
| float32 | 32 (4) | |
| float64 | 64 (8) | |
| real*4 | 32 (4) | |
| real*8 | 64 (8) | |
| Characters | char*1 | 8 (1) |
| char | Depends on the encoding scheme associated with the file. Set encoding with fopen. |
matlab data type
最新推荐文章于 2025-01-13 08:10:18 发布
本文概述了计算机科学中常见的数值类型及其位数与精度特性,包括整型(有符号与无符号)、浮点型及字符类型等,适用于不同编程场景的需求。
3230

被折叠的 条评论
为什么被折叠?



