Question Format Double to string

raysefo

Well-known member
Joined
Jul 21, 2010
Messages
207
Programming Experience
Beginner
Hi,

I would like to format double number like below;

4220.75

to a string

422075

Is this possible?

Thanks in advance.

Best Regards
 
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(".", "")
 
Back
Top