Main Content

Fixed Point

Represent signals and parameter values with fixed-point numbers to improve performance of generated code

Within digital hardware, numbers are represented as either fixed-point or floating-point data types. For both of these data types, word sizes are fixed at a set number of bits. However, the dynamic range of fixed-point values is much less than floating-point values with equivalent word sizes. While floating-point processors can greatly simplify the real-time implementation of a system, and effectively approximate real-world numbers, fixed-point processors carry numerous other benefits. Fixed-point processors are generally smaller, consuming less power. They also require less memory and less processor time to perform.

To simulate a model that uses fixed-point numbers, you must install the Fixed-Point Designer™ product. You do not need the Fixed-Point Designer product to edit a model containing fixed-point blocks, or to specify fixed-point data types.

Functions

fixdtCreate Simulink.NumericType object describing a fixed-point or floating-point data type
fixptbestexpExponent that gives best precision for fixed-point representation of value
fixptbestprecDetermine maximum precision available for fixed-point representation of value

Topics

Related Information