When you divide two integers in Python, by default it is only possible to get the value of an integer, and when you need to evaluate the results in a precise way, you want to get the floating-point value after the operation, then how to handle it? 1, modify the value of the dividend with a decimal point can be a floating point value, this method in the case of dividend prior knowledge to be effective, and this situation means that the value of the divisor is written dead, fixed, in most cases is not feasible; 2. Import a real Division module before the division operation. A floating-point result can be obtained when dividing two integers; from __future__ import pision The results of the test are as follows: ufo@ufo:~$ Pythonpython 2.7.4 (default, Sep 26 2013, 03:20:56) [GCC 4.7.3] on 
1. How to use Python to get a floating point value after the operation of the method detailed
Summary: When you divide two integers in Python, by default it is only possible to get the value of an integer, and when you need to evaluate the results of the result, you want to get the floating point value after the operation, then how to handle it?
2. In-depth understanding of MySQL advanced drifting (i)
Summary: Numeric type numeric types are broadly divided into two broad categories: One is an integer, one is a floating-point number, or a decimal number. Integer types are commonly used for type int, allowing the range to be between ( -2147483648,2147483648). The common types of floating-point or decimal numbers are: float,double and decimal types. Float type (single-precision floating-point numeric value), double type (double-precision floating-point numeric value), decimal type (used for very high precision calculations; These types allow you to specify the accuracy and count of numeric values
3. JavaScript Object-oriented essentials (i)
Summary: Data types in JavaScript, data types fall into two categories: primitive types save some simple data, such as true,5. JavaScript has a total of 5 primitive types: Boolean: Boolean, value TRUE or false number: Numeric, value is any integral type floating-point value string: string, The value is a single character or consecutive character enclosed by single or double quotation marks (JavaScript is not distinguished by character type) null: null type, with only one value: nulll undefined: Undefined, with only one value: U.
4. Python two integers divide the method of getting floating-point numbers
Introduction: This article mainly describes the Python two integer division to get floating point number method, this article directly gives the code example, the need for friends can refer to the following
"Related question and answer recommendation":
Javascript-js, how do you understand rounding errors in the calculation of floating-point numbers?