Here are FLOAT and DOUBLE The difference between ：

float : Single-precision floating-point

double : Double precision floating point

· Floating point number 8 Bit accuracy is stored in FLOAT in , And there are four bytes .

· Floating point numbers are stored in DOUBLE in , Accuracy of 18 position , There are eight bytes .

Generally speaking ,CPU Processing single precision floating-point numbers is faster than processing double precision floating-point numbers , Try to use single precision floating point numbers float

## FLOAT and DOUBLE More articles about the difference

1. short、int、long、float、double difference

One . Characteristics of basic data types , digit , Maximum and minimum .1. Basic types :short  Binary digits :16  Packaging :java.lang.Short  minimum value :Short.MIN_VALUE=-32768 (-2 Of 15 This side ...

2. About float And double difference

Problem A: Beer and drinks Time Limit: 1 Sec  Memory Limit: 128 MB Submit: 175  Solved: 29 [Submit][Status][We ...

3. Sql Of decimal、float、double The difference between types

The difference between the three float: floating-point , The number of bytes is 4,32bit, The range of values is -3.4E38~3.4E38(7 A significant ) double: Double precision real type , The number of bytes is 8,64bit Range of values -1.7E308~1.7E ...

4. float and double What's the difference? ？

float and double It must be used a lot in the game industry , Although it's a very basic question , It's not good to be asked . So let's sum up : float Single precision floating point numbers occupy the computer 4 Bytes , use 32 Bit binary ...

5. decimal,float and double The difference between

http://www.cnblogs.com/yellowapplemylove/archive/2011/08/23/2150316.html It's been strange C# Why add one to the predefined data types of deci ...

6. decimal And float and double The difference between

It's been strange C# Why add one to the predefined data types of decimal, Yes float and double Isn't that enough ? Let's dig today . floating-point Name CTS Type De script ion Significan ...

7. Decimal、 Float、 Double Use

One .Java 1.float The data end of a type definition must be   Yes "f " or "F", In order to and double difference . example float x=123.456f,  y=2e20f; publ ...

8. c Language basic data type short、int、long、char、float、double

C The data types contained in the language are shown in the figure below : One . Data type and “ Mold ”short.int.long.char.float.double These six keywords represent C Six basic data types in languages . How to understand them ? for instance ...

9. Precise values avoid using float and double, Use BigDecimal

The implementation will double The value of type is converted to BigDecimal The different ways of the value of the type and the differences between them One : Some people may think that in  Java  writes  new BigDecimal(0.1)  Created  BigDecimal  ...

## Random recommendation

1. C++11 And lambda expression

lambda Expressions come from the concept of functional programming , It can define the objective function or function object anonymously , There is no need to write an extra named function or function object .lambda The type of expression is in C++11 Known as " Closure type ", It's fine too ...

2. oracle-- Create tablespace 、 user name 、 password

Link to the original text :http://blog.sina.com.cn/s/blog_4ce992f40101cspr.html

3. avoid Java Application NullPointerException Skills and best practices

Java Null pointer exception thrown in application is the best way to solve null pointer problem , It's also the key to writing robust programs that work well . It is said that " Prevention is better than cure ", For such an obnoxious null pointer exception , This is also true . It's fortunate to use a ...

4. Linux Learning notes 22—— Thread properties （ turn ）

5. senior UNIX Environment programming

General documents Only the index section number (i-number, It's a group of i-node The index of ),i-node Does not contain file name and data byte , Including file types , Number of links ,uid,gid, Access right , Number of bytes , Last access time , Last modified , Information node ...

6. Integrated learning ---bagging and boosting

As two methods of integrated learning , Actually bagging and boosting The implementation of is easier to understand , But it's hard to prove . Let's first introduce these two methods . So called integrated learning , It is to combine multiple or multiple weak classifiers into a strong classifier , So as to achieve improvement ...

7. Distributed version control system Git-----5.Git Of push Command summary

git push git push Command to update the local branch , Push to remote host . Its format and git pull The order is similar . git push < Remote host name > < Local branch name >:< long-range ...

8. BZOJ_1823_[JSOI2010] All the seats of man and Han _2-sat+tarjan

BZOJ_1823_[JSOI2010] All the seats of man and Han _2-sat The question :http://www.lydsy.com/JudgeOnline/problem.php?id=1823 analysis : It's easy to see ...

9. 10、Dockerfile actual combat -PHP

One . Image making steps Install build dependency package Compilation and installation To configure Two . To write Dockerfile FROM centos:7 MAINTAINER QUNXUE RUN yum install -y gcc gcc-c ...

10. Spark-Sql And DataFrame Detailed explanation of the actual battle

1.DataFrame brief introduction : stay Spark in ,DataFrame Is a kind of RDD Distributed data sets based on , Similar to the traditional database, listen to two-dimensional tables ,DataFrame with Schema Meta information , namely DataFrame Represented by ...