Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Fixed-point and half-precision numbers, scale, cast, precision,
arithmetic operations

`embedded.fi` | Fixed-point numeric object |

`embedded.fimath` | fimath object |

`embedded.numerictype` | numerictype object |

Teaches you how to create `fi`

objects

Basic information on using fi objects

**Perform Fixed-Point Arithmetic**

“Perform Fixed-Point arithmetic”

Shows you how to cast `fi`

objects

Perform binary-point scaling in fixed point.

Describes slope-bias scaling and how to compute it

**Set Fixed-Point Math Attributes**

This example shows how to set fixed point math attributes in MATLAB code.

**View Fixed-Point Number Circles**

Define unsigned and signed two’s complement integer and fixed-point numbers.

Tells you how to find more information about the properties
associated with `fi`

objects, and shows you how to
set these properties

**fi Objects and C Integer Data Types**

Compares ANSI C integer data type ranges, conversions,
and exception handling with those of `fi`

objects

**fi Object Display Preferences Using fipref**

Gives examples of using `fipref`

objects
to set display preferences for `fi`

objects

**Underflow and Overflow Logging Using fipref**

Gives examples of using `fipref`

objects
to set logging preferences for `fi`

objects

**Data Type Override Preferences Using fipref**

Describes how to use the `fipref`

object
to perform data type override

Describes the ways you can use Fixed-Point
Designer™ `fi`

objects
with Simulink^{®} models

**fi Objects with DSP System Toolbox**

Describes how to pass fixed-point data back and forth
between the MATLAB^{®} workspace and Simulink models using DSP System
Toolbox™ blocks

**What Is the Difference Between Fixed-Point and Built-In Integer Types?**

Explains the difference between fixed-point data types and built-in integer data types in MATLAB.

A negative fraction length occurs when the input value
of a `fi`

object contains trailing zeros.

**Fraction Length Greater Than Word Length**

A fraction length greater than the word length of a fixed-point number occurs when the number has an absolute value less than one and contains leading zeros.