Zero suppression

An electronic calculator with zero suppression, showing 123 instead of 000000000123

Zero suppression is the removal of redundant zeroes from a number. This can be done for storage, page or display space constraints or formatting reasons, such as making a letter more legible.[1][2][3]

Examples:

One must be careful; in physics and related disciplines, trailing zeros are used to indicate the precision of the number, as an error of ±1 in the last place is assumed. Examples:

It is also a way to store a large array of numbers, where many of the entries are zero. By omitting the zeroes, and instead storing the indices along with the values of the non-zero items, less space may be used in total. It only makes sense if the extra space used for storing the indices (on average) is smaller than the space saved by not storing the zeroes. This is sometimes used in a sparse array.

Example:

References

  1. "Telecom Glossary 2000: Zero Suppression". U.S.: Institute for Telecommunication Sciences, NTIA. Archived from the original on 2008-09-25.
  2. Parr, E. A. (1999). Industrial Control Handbook (3 ed.). Industrial Press, Inc. p. 582. ISBN 978-0831130855.
  3. Grabowski, Ralph (2010). Using AutoCAD 2011. Autodesk Press. p. 648. ISBN 978-1111125141.

See also


This article is issued from Wikipedia - version of the 10/9/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.