“双重”和“双重” [英] Difference between "Double" and "double"
本文介绍了“双重”和“双重”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Double far2 = Double.parseDouble(far1);
Double far_cel1=(far2-32)*0.555555555;
DecimalFormat df = new DecimalFormat("#.####");
双和双有什么区别?
What is the difference between "Double" and "double"?
*请帮助
推荐答案
Double
是一个对象, double
是一个原始数据类型。 有关详细信息,请参阅此答案。
Double
is an object and double
is a primitive data type. See this answer for more details.
Double类在
对象中包含基元类型double的值。类型Double的对象包含一个单个字段,其类型为
double。
The Double class wraps a value of the primitive type double in an object. An object of type Double contains a single field whose type is double.
资料来源: http://docs.oracle.com/javase/7/docs/api/java /lang/Double.html
这篇关于“双重”和“双重”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文