Präzision
Computerwörter umfassen eine endliche Anzahl Bits. Das bedeutet, dass eine binäre Codierung von Variablen nur eine Annäherung eines beliebigen präzisen Echtwelt-Werts darstellt. Daher gehen mit den Grenzen der binären Darstellung automatisch Einschränkungen hinsichtlich der Präzision des Werts einher.
Themen
- Range and Precision
Range and precision of fixed-point data types.
- Maximize Precision
To maximize precision, make the slope as small as possible while keeping the range adequately large.
- Rounding Modes
Rounding involves going from high precision to lower precision and produces quantization errors and computational noise. Fixed-Point Designer™ provides seven rounding modes.
- Net Slope and Net Bias Precision
Net slope and bias precision, detecting precision loss, underflow, and overflow.
- Detect Fixed-Point Constant Precision Loss
This example shows how to detect fixed-point constant precision loss.
- Use Scaled Doubles to Avoid Precision Loss
How to avoid precision loss by overriding the data types in your model with scaled doubles.