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.
Dark_Omen
5
Posting Pro
Recommended Answers
Jump to PostIs 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.
double is a primative not a Class and you cannot call methods on it like a Class/Object.
There are several ways …
Jump to Postwhich basically means, it does work. but you need to keep in mind that every type has it's limits.
@Makarek: if one wants to use a double, it's doubtfull the value 100000000000000000 whil show up during the programming or running of the program
All 5 Replies
hooknc
1
Posting Whiz in Training
Makarek
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
fwilches
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.