double to string without point [SOLVED]
C#
22
Posts
10
Posters
0
Views
1
Watching
-
I'll do it in a 1/3 of a line at 640x480. If you want to beat that, you'll have to "name that tune"!
A guide to posting questions on CodeProject[^]
Dave KreskowiakThe current one playing is Lennon's version of Stand by Me, but I sing it I'll clear the room.
I wasn't, now I am, then I won't be anymore.
-
Hi everybody, I wanna have the smallest code to conver a double to a string without the point of digits Exple: 12.010 --->1201 ty
modified on Friday, March 18, 2011 6:03 AM
Let's say that your Double is double lifeSpan.
string ls = lifeSpan.ToString().Replace(".","");