The Fixed-Point Designer™ software uses floating-point multiplication to perform net slope correction for floating-point to fixed-point casts.
Category: Math and Data Types
Default: Off
Use floating-point multiplication to perform net slope correction for floating-point to fixed-point casts.
Use division to perform net slope correction for floating-point to fixed-point casts.
This optimization affects both simulation and code generation.
When converting from floating point to fixed point, if the net slope is not a power of two, slope correction using division improves precision. For some processors, use of multiplication improves code efficiency.
This parameter requires a Fixed-Point Designer license.
Parameter:
UseFloatMulNetSlope |
Value:
'on' | 'off' |
Default:
'off' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | On (when target hardware supports efficient multiplication)
Off (otherwise) |
Safety precaution | No recommendation |