Skip to Main Content Skip to Search
Product Documentation

fimath - Construct fimath object

Syntax

F = fimath
F = fimath(...'PropertyName',PropertyValue...)

Description

You can use the fimath constructor function in the following ways:

The properties of the fimath object are listed below. These properties are described in detail in fimath Object Properties in the Properties Reference.

Examples

Example 1

Type

F = fimath

to create a default fimath object. If you are using the factory default setting of the global fimath, you get the following output:

F =
 
             RoundMode: nearest
          OverflowMode: saturate
           ProductMode: FullPrecision
  MaxProductWordLength: 128
               SumMode: FullPrecision
      MaxSumWordLength: 128

Example 2

You can set properties of fimath objects at the time of object creation by including properties after the arguments of the fimath constructor function. For example, to set the overflow mode to saturate and the rounding mode to convergent,

F = fimath('OverflowMode','saturate',...
           'RoundMode','convergent')
 
F =
 
             RoundMode: convergent
          OverflowMode: saturate
           ProductMode: FullPrecision
  MaxProductWordLength: 128
               SumMode: FullPrecision
      MaxSumWordLength: 128

See Also

fi | fipref | globalfimath | numerictype | quantizer | removeglobalfimathpref | resetglobalfimath | saveglobalfimathpref

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS