(computer science) A scalar data type which contains a normalized fraction (mantissa) and an exponent (characteristic) and is used to represent floating-point data, usually decimal.
| Sci-Tech Dictionary: real data type |
(computer science) A scalar data type which contains a normalized fraction (mantissa) and an exponent (characteristic) and is used to represent floating-point data, usually decimal.
| 5min Related Video: Real data type |
| Wikipedia: Real data type |
|
|
This article does not cite any references or sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. (December 2009) |
A real data type is a data type used in a computer program to represent an approximation of a real number. Because the real numbers are not countable, computers cannot represent them exactly using a finite amount of information. Most often, a computer will use a rational approximation to a real number.
The most general data type for a rational number stores the numerator and denominator as integers. See Integer.
A "fixed point" data type assumes a specific denominator for all numbers. The denominator here is most often a power of two. For example, in a system whose denominator is 65,536 (216), the hexadecimal number 0x12345678 means 0x12345678/65536 or 305419896/65536 or 4660 + 22136/65536 or about 4660.33777. See fixed-point arithmetic.
A "floating point" type is a compromise between the flexibility of a general rational type and the speed of fixed-point arithmetic. It uses some of the bits in the data type to specify a power of two for the denominator. See floating point and IEEE Floating Point Standard.
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)
| FALSE | |
| Fixed-point arithmetic | |
| Multi-core |
| Give 5 examples of real data types? | |
| What are data variables and data types? | |
| What is data and common. type of data? |
Copyrights:
![]() | Sci-Tech Dictionary. McGraw-Hill Dictionary of Scientific and Technical Terms. Copyright © 2003, 1994, 1989, 1984, 1978, 1976, 1974 by McGraw-Hill Companies, Inc. All rights reserved. Read more | |
![]() | Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Real data type". Read more |