Article source address: http://blog.csdn.net/lyd518/article/details/7236464 reprint Please indicate the source, respect the author's labor results, thank you!The problem is this:37.5*5.5=206.08(JS figure out is such a result, I rounded to take two
PHP floating point number knowledge
This article mainly introduces you to know about PHP floating point numbers. This article describes the critical values of PHP floating point numbers, critical values of PHP numbers, and precision loss. For more
This article describes how to calculate and compare floating-point numbers in PHP and how to obtain an inaccurate integer. The code is very simple. For more information, see
This article describes how to calculate and compare floating-point numbers
Summary of JavaScript floating point number and operation Precision Adjustment
JavaScript has only one numeric type Number, and all numbers in Javascript are represented in IEEE-754 standard format. The precision of floating point numbers is not
Most languages encounter precision problems when dealing with floating-point numbers, but in JS it seems particularly serious to look at an examplealert(45.6*13);It turned out to be 592.800000000001, and of course the addition would have this
Real data is also known as floating-point numbers or real numbers. In the C language, the real number is only used in decimal. It has two types: decimal decimal form and exponential form. Representation of a real number1) Decimal number
Note that the result of dividing two integers is still an integer, not a floating-point number.
problem Description: Known Celsius temperature (℃) and Fahrenheit temperature (℉) conversion relationship is:
The analysis of the storage mode of the floating point number of C + + in memory
Any data is stored in binary form in memory, such as a short data 1156, and a binary representation of 00000100 10000100. In the Intel CPU architecture system, the
Floating-point number division:
Floating-point division, such as 1/A, should be written as 1.0/a. Otherwise, you can't get the right results.
Example:
Enter the three-side length of the triangle to find the triangle area. (Set the input a,b,c can
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
Single-precision floating-point number with 4 bytes (32bit) for floating-point numbers, using the IEEE754 standard computer floating-point number, in the interior is a binary representation, such as: 7.22 with 32-bit binary is not the case, so it
Single-precision floating-point numbers are 4 bytes (32bit) representing floating point numbersUses the IEEE754 standard computer floating-point number, in the interior is uses the binary system to representFor example: 7.22 with a 32-bit binary is
Think a lot of friends are not how to use the float type in MySQL, especially when it comes to money we may use double precision, we know that the type of float of MySQL is single precision floating point type is careless will cause data
Single-precision floating-point numbers are 4 bytes (32bit) representing floating point numbersUses the IEEE754 standard computer floating-point number, in the interior is uses the binary system to representFor example: 7.22 with a 32-bit binary is
Verification number: ^ [0-9] * $
Verify the n-digit number: ^ \ D {n} $
Verify at least N digits: ^ \ D {n,} $
Verify M-N digits: ^ \ D {m, n} $
Verify the number starting with zero or zero: ^ (0 | [1-9] [0-9] *) $
Verify the positive
Username [\ W \-] {3, 12} 3-12 characters (including English letters, numbers ,'-','_') password [\ X21-\ x7e] {3, 8} 3-8 common characters (0x21 to 0x7e) age 1 [0-2] \ d | \ D {129} maximum years old date (19 | 20) \ D {2} [/\ s \-\.] * (0 [1-9] |
Verification number: ^ [0-9] * $
Verify the n-digit number: ^ \ D {n} $
Verify at least N digits: ^ \ D {n,} $
Verify M-N digits: ^ \ D {m, n} $
Verify the number starting with zero or zero: ^ (0 | [1-9] [0-9] *) $
Verify the positive number of two
Verification number: ^ [0-9] * $
Verify the n-digit number: ^ \ D {n} $
Verify at least N digits: ^ \ D {n,} $
Verify M-N digits: ^ \ D {m, n} $
Verify the number starting with zero or zero: ^ (0 | [1-9] [0-9] *) $
Verify the positive
Verification number: ^ [0-9] * $
Verify the n-digit number: ^ \ D {n} $
Verify at least N digits: ^ \ D {n,} $
Verify M-N digits: ^ \ D {m, n} $
Verify the number starting with zero or zero: ^ (0 | [1-9] [0-9] *) $
Verify the positive number of two
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.