Read for example about Numeric Format String, then use with proper value:
double value = 1715.0;
string result = (value / 1000.0).ToString("F1", CultureInfo.InvariantCulture) + "K";
Frage
How do I format a Double to String:
1715 --> 1.7K
500 --> 0.5k
Lösung 2
Read for example about Numeric Format String, then use with proper value:
double value = 1715.0;
string result = (value / 1000.0).ToString("F1", CultureInfo.InvariantCulture) + "K";
Andere Tipps
You can do it like this:
Console.WriteLine("{0:0.0}K", 1715/1000d);
Here is the fiddle
Further reading