detect precision loss
description
specifies diagnostic action to take when a fixed-point constant precision loss occurs during simulation.
category: diagnostics
settings
default: none
none
simulink® software takes no action.
warning
simulink software displays a warning.
error
simulink software terminates the simulation and displays an error message.
tips
this diagnostic applies only to fixed-point constants (net slope and net bias).
precision loss occurs when simulink software converts a fixed-point constant to a data type which does not have enough precision to represent the exact value of the constant. as a result, the quantized value differs from the ideal value.
fixed-point constant precision loss differs from fixed-point constant overflow. overflow occurs when the range of the parameter's data type, that is, the maximum value that it can represent, is smaller than the ideal value of the parameter.
dependency
this parameter requires a fixed-point designer™ license.
command-line information
parameter:fixptconstprecisionlossmsg |
value: 'none' | 'warning'
| 'error' |
default: 'none' |
recommended settings
application | setting |
---|---|
debugging | no impact |
traceability | no impact |
efficiency | no impact |
safety precaution | no impact |
related topics
- (fixed-point designer)