Hi, Experts
I have a single number A = 1.9E+28, I want convert it to String by using
String B = A.ToString() ;
B will be "1.9E+28"
BUT I want to show B like B = "19000000....000" <---- 27 digit 0.
How can I do? Show me.
Printable View
Hi, Experts
I have a single number A = 1.9E+28, I want convert it to String by using
String B = A.ToString() ;
B will be "1.9E+28"
BUT I want to show B like B = "19000000....000" <---- 27 digit 0.
How can I do? Show me.
"f0" means fixed-point with zero decimal places. Look up format strings on MSDN for more info.Code:String B = A.ToString("f0");
Nice, thanks