Skip to Main Content Skip to Search
Product Documentation

fimath Object Properties

The properties associated with fimath objects are described in the following sections in alphabetical order.

CastBeforeSum

Whether both operands are cast to the sum data type before addition. Possible values of this property are 1 (cast before sum) and 0 (do not cast before sum).

The MATLAB factory default value of this property is 1 (true).

This property is hidden when the SumMode is set to FullPrecision.

MaxProductWordLength

Maximum allowable word length for the product data type.

The MATLAB factory default value of this property is 128.

MaxSumWordLength

Maximum allowable word length for the sum data type.

The MATLAB factory default value of this property is 128.

OverflowMode

Overflow-handling mode. The value of the OverflowMode property can be one of the following strings:

The MATLAB factory default value of this property is saturate.

ProductBias

Bias of the product data type. This value can be any floating-point number. The product data type defines the data type of the result of a multiplication of two fi objects.

The MATLAB factory default value of this property is 0.

ProductFixedExponent

Fixed exponent of the product data type. This value can be any positive or negative integer. The product data type defines the data type of the result of a multiplication of two fi objects.

. Changing one of these properties changes the others.

The ProductFixedExponent is the negative of the ProductFractionLength. Changing one property changes the other.

The MATLAB factory default value of this property is -30.

ProductFractionLength

Fraction length, in bits, of the product data type. This value can be any positive or negative integer. The product data type defines the data type of the result of a multiplication of two fi objects.

The ProductFractionLength is the negative of the ProductFixedExponent. Changing one property changes the other.

The MATLAB factory default value of this property is 30.

ProductMode

Defines how the product data type is determined. In the following descriptions, let A and B be real operands, with [word length, fraction length] pairs [Wa Fa] and [Wb Fb], respectively. Wp is the product data type word length and Fp is the product data type fraction length.

The MATLAB factory default value of this property is FullPrecision.

ProductSlope

Slope of the product data type. This value can be any floating-point number. The product data type defines the data type of the result of a multiplication of two fi objects.

. Changing one of these properties changes the others.

The MATLAB factory default value of this property is 9.3132e-010.

ProductSlopeAdjustmentFactor

Slope adjustment factor of the product data type. This value can be any floating-point number greater than or equal to 1 and less than 2. The product data type defines the data type of the result of a multiplication of two fi objects.

. Changing one of these properties changes the others.

The MATLAB factory default value of this property is 1.

ProductWordLength

Word length, in bits, of the product data type. This value must be a positive integer. The product data type defines the data type of the result of a multiplication of two fi objects.

The MATLAB factory default value of this property is 32.

RoundMode

The rounding mode. The value of the RoundMode property can be one of the following strings:

The MATLAB factory default value of this property is nearest.

See Rounding Methods in the Fixed-Point Toolbox User's Guide for more information.

SumBias

The bias of the sum data type. This value can be any floating-point number. The sum data type defines the data type of the result of a sum of two fi objects.

The MATLAB factory default value of this property is 0.

SumFixedExponent

The fixed exponent of the sum data type. This value can be any positive or negative integer. The sum data type defines the data type of the result of a sum of two fi objects

. Changing one of these properties changes the others.

The SumFixedExponent is the negative of the SumFractionLength. Changing one property changes the other.

The MATLAB factory default value of this property is -30.

SumFractionLength

The fraction length, in bits, of the sum data type. This value can be any positive or negative integer. The sum data type defines the data type of the result of a sum of two fi objects.

The SumFractionLength is the negative of the SumFixedExponent. Changing one property changes the other.

The MATLAB factory default value of this property is 30 .

SumMode

Defines how the sum data type is determined. In the following descriptions, let A and B be real operands, with [word length, fraction length] pairs [Wa Fa] and [Wb Fb], respectively. Ws is the sum data type word length and Fs is the sum data type fraction length.

The MATLAB factory default value of this property is FullPrecision.

SumSlope

The slope of the sum data type. This value can be any floating-point number. The sum data type defines the data type of the result of a sum of two fi objects.

. Changing one of these properties changes the others.

The MATLAB factory default value of this property is 9.3132e-010.

SumSlopeAdjustmentFactor

The slope adjustment factor of the sum data type. This value can be any floating-point number greater than or equal to 1 and less than 2. The sum data type defines the data type of the result of a sum of two fi objects.

. Changing one of these properties changes the others.

The MATLAB factory default value of this property is 1.

SumWordLength

The word length, in bits, of the sum data type. This value must be a positive integer. The sum data type defines the data type of the result of a sum of two fi objects.

The MATLAB factory default value of this property is 32.

  


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