Http://www.cnblogs.com/kingwolfofsky/archive/2011/07/21/2112299.html
floating point numbers
1. What are floating point numbers
In the process of computer system development, several methods have been proposed to express real numbers. Typically, for
Numbers, cardinality and representations
integerIntegers are these familiar numbers ...,-1, 0, +1, +2, .... Integer values are also referred to as ' complete ' and are divided into positive numbers (1 to infinity), negative numbers (-1 to
Copy From http://hi.baidu.com/chumingyu/blog/item/ff7b583829604d3c96ddd8b6.htmlFloating Point variables occupy 4 bytes (in bytes) in the computer memory, that is, 32-bit. Complies with IEEE-754 format standards.A floating point number consists of
1, 1999 of the 1998-digit number of the square is ()A. 1 B. 3 c. 7 D. 9The mantissa formula: 1~9 The last number of their own by themselves are four a cycle.The 1-exponent mantissa is the 1, 1, 1, 1 loopsThe 2-exponent mantissa is the 2, 4, 8, 6
Floating-point dataRepresentation of a non-integerIn addition to integers, the usual calculation is inseparable from the non-integers, that is, those numbers with fractional parts. In a digital system, integers and non-integers are called rational
1, you can use the arithmetic of the number to move right, and then use the 0XFF such a number to do the mask operation, you can get to a number of sign bit. One of the most important functions of a computer's shift operation is to extract a piece
double and float are floating point types. Doubles (double type) are more accurate than float (single-precision) data and occupy more space. Double precision is twice times that of float, so a double is often used for more precise calculations.
Decimals are also called real numbers or floating-point numbers. For example, 0.0, 75.0, 4.023, 0.27, and 937.198 are all legal decimals. This is a common representation of decimals, called decimal forms.
In addition to the decimal form, can also
The 1.C language is a standard, and the automation program generated when the standard is executed is the compiler2. Understanding: The United States National Standardization Rest (ANSI) in 1983 developed the C language standard.Features of the C
IEEE754 the representation of floating-point numbers. The expression range of float type data in C language is -3.4*10^38~+3.4*10^38. Double is -1.7*10^-308~1.7*10^308,long double for -1.2*10^-4932~1.2*10^4932.
Type
Number of bits
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.