Jump to content

Representable number

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jason Quinn (talk | contribs) at 17:31, 23 August 2012 (+ref to Kirk and Hwu's "Programming Massively Parallel Processors"). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Representable numbers are numbers capable of being represented exactly in a given binary number format.[1] The format could can either be an integer or floating point numbers. Representable numbers are often visually depicted on a number line.

Integer examples

The integers 0 through 7 are representable in a 3 binary digit code in the usual binary number format. All other integers are not representable by in this format.

Floating point examples

References

  1. ^ Kirk, David B.; Wen-mei Hwu (2010). Programming massively parallel processors : a hands-on approach. Burlington, MA: Morgan Kaufmann Publishers. p. 129. ISBN 978-0-12-381472-2. Retrieved 23 August 2012. The representable numbers of a number format are the numbers that can be exactly represented in the format