R raysefo Well-known member Joined Jul 21, 2010 Messages 207 Programming Experience Beginner Jan 28, 2011 #1 Hi, I would like to format double number like below; 4220.75 to a string 422075 Is this possible? Thanks in advance. Best Regards
Hi, I would like to format double number like below; 4220.75 to a string 422075 Is this possible? Thanks in advance. Best Regards
M MattP Well-known member Joined Feb 29, 2008 Messages 1,206 Location WY, USA Programming Experience 5-10 Jan 28, 2011 #2 Easiest to just call .ToString and replace the decimal point with an empty string. VB.NET: Dim num = 4220.75 Dim str = num.ToString.Replace(".", "") Upvote 0 Downvote
Easiest to just call .ToString and replace the decimal point with an empty string. VB.NET: Dim num = 4220.75 Dim str = num.ToString.Replace(".", "")