![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
converting double to string
Is there a way to convert a double to string. I tried to do it like this x.toString() and it didnt work as well as implicitly converting it. It gives me an error saying double can not be dereferenced.
|
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Oct 2005
Posts: 134
Rep Power: 3
![]() |
String s = Double.toString(3.14); |
|
|
|
|
|
#3 |
|
Programmer
|
double i = 5;
String str = Double.toString(i); |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
|
Thanks for the help.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|