Directory
1. What is a floating point number?
2. IEEE floating point number
3. Transformation between a real number and a floating point number
4. Special values
4.1. Nan
4.2. Infinite
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
Although almost every processor andProgramming LanguageAll support floating point operations, but mostProgramStaff seldom pay attention to it. This is easy to understand-most of us seldom need non-integer types. In addition to scientific computing
Although almost every processor and programming language supports floating point operations, most programmers seldom pay attention to it. This is easy to understand-most of us seldom need non-integer types. In addition to scientific computing and
Storage Method of floating point and floating point in memory, floating point
First, let's talk about how to convert decimal places to binary decimal places. The computer doesn't even know the decimal data. He only knows 0 and 1. So, decimal decimal
This paper summarizes the meaning, generation and judging methods of Nan and INF in C language. Nan in the C language means not a number, which is equivalent to #IND: indeterminate (Windows) generates:An undefined operation was performed on a
The Java™ Language Specification version 5th java.lang.Math adds java.lang.StrictMath 10 new methods, and Java 6 adds 10 more. The 1th part of this two-part series introduces a very meaningful new mathematical approach. It provides a function that
We know that cosmetic operations in Java do not allow 0 to be the denominator, but are possible in floating-point operations, so there is a special case of Nan and infinity, both of which are illegal floating-point data. 1.Infinity: The numerator is
1, i = = i + 1A number never equals its own plus 1? Java enforcement requires the use of IEEE 754 floating-point arithmetic operations [IEEE 754], which allows you to represent infinity with a double or float. As we learned in school, Infinity plus 1
5.2 infinity and Nan
IEEE 754 floating point numbers can represent positive or negative infinity, andNan(Not a number ). these three values arise from calculations whose result is undefined or cannot be represented accurately. you can also
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.