Main Content

本页的翻译已过时。点击此处可查看最新英文版本。

数字表示

定点和浮点数表示

在数字硬件中,二进制数字以定点或浮点数据类型的形式来表示。了解不同数据类型是如何在硬件中定义和表示的,可以帮助您选择适合您应用程序的数据类型。

主题

通用

Physical Quantities and Measurement Scales

Overview of measurement scales and representing numbers.

定点硬件的好处

定点硬件在大小和功耗、内存使用量、速度和成本方面具有优势。

Data Types and Scaling in Digital Hardware

Provides an overview of data types and scaling in digital hardware.

Supported Data Types

Data types supported for simulation and code generation.

定点

Fixed-Point Data Types

Fixed-point data types representation.

Quantization

A weighted sum of bits represents the quantization of a real-world value.

Fixed-Point Numbers in Simulink

Fixed-point data type and scaling notation used in Simulink®.

numerictype of Fixed-Point Objects

Fields and settings for the numerictype object.

Fixed-Point Versus Built-in Integer Types

Differences between fixed-point data types and built-in integer data types in MATLAB®.

Fraction Lengths and Fixed-Point Numbers

Definitions for negative fraction length and fraction length greater than word length.

浮点

Floating-Point Numbers

Representation and manipulation of floating-point numbers.

Scaled Doubles

Hybrids between floating-point and fixed-point numbers, which are stored by Fixed-Point Designer™ as doubles.

特色示例