Topic: 弱问:请问怎样把一个double型的数变成字符串? |
Print this page |
1.弱问:请问怎样把一个double型的数变成字符串? | Copy to clipboard |
Posted by: landg Posted on: 2004-09-15 06:24 integer型变成字符串可以用Integer.toString(x). double型的该怎末办呢? 谢谢! |
2.Re:弱问:请问怎样把一个double型的数变成字符串? [Re: landg] | Copy to clipboard |
Posted by: lfrick Posted on: 2004-09-15 08:16 也一样啊,Double.toString(double value) |
3.Re:弱问:请问怎样把一个double型的数变成字符串? [Re: lfrick] | Copy to clipboard |
Posted by: landg Posted on: 2004-09-15 08:52 喔,谢谢, 原来是Double,而不是double |
4.Re:弱问:请问怎样把一个double型的数变成字符串? [Re: landg] | Copy to clipboard |
Posted by: eric_dasini Posted on: 2004-09-15 14:48 所有首字母为小写的都是基本类型. 所有首字母为小写的都是对象,只有对象才有方法. |
5.Re:弱问:请问怎样把一个double型的数变成字符串? [Re: landg] | Copy to clipboard |
Posted by: siage Posted on: 2004-09-15 18:52 java提供了一些特殊的类,让原始数据类型像对象一样。 这些特殊的类除了Character(char) ,Integer(int)之外,别的头一个字母都大写(跟原来的原始数据类型相比较) 各种常用的转换函数都在j2se sdk的doc里,我觉得市面上所有的j2se书都不如j2se sdk的doc全面啊,可惜看着比较麻烦啊,本来e文就够烂的,不知道什么时候出来中文版 |
6.Re:弱问:请问怎样把一个double型的数变成字符串? [Re: siage] | Copy to clipboard |
Posted by: landg Posted on: 2004-09-17 11:24 总结得很好呀! 谢谢! |
7.Re:弱问:请问怎样把一个double型的数变成字符串? [Re: landg] | Copy to clipboard |
Posted by: 被遗忘的时光 Posted on: 2004-09-17 21:46 用 String.valueOf() |
8.Re:弱问:请问怎样把一个double型的数变成字符串? [Re: siage] | Copy to clipboard |
Posted by: ceasar Posted on: 2004-09-17 23:07 siage wrote: 源代码更好。 |
9.Re:弱问:请问怎样把一个double型的数变成字符串? [Re: 被遗忘的时光] | Copy to clipboard |
Posted by: landg Posted on: 2004-09-19 17:24 喔,谢谢! |
10.Re:弱问:请问怎样把一个double型的数变成字符串? [Re: lfrick] | Copy to clipboard |
Posted by: xhxasdf Posted on: 2004-09-20 13:35 lfrick wrote: 强! |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |