Integer转double
时间: 2023-12-22 10:05:21 浏览: 79
转换科学计数法成double
3星 · 编辑精心推荐
Integer转double可以使用doubleValue()方法。这个方法会以double类型返回该Integer的值。所以,如果有一个Integer对象a,你可以使用a.doubleValue()来将其转换为double类型。
#### 引用[.reference_title]
- *1* [转载:String,Integer,Double等类型相互转换](https://blog.csdn.net/qq_36256590/article/details/122055965)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [Java Integer如何转换double,float,int,long,string呢?](https://blog.csdn.net/qq_25073223/article/details/126519005)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文