I think:
string.Format(System.Globalization.CultureInfo.GetCultureInfo("de-DE"), "{0:0.0}", 4.3);
should do what you want.
More Related Contents:
- Format Number like Stack Overflow (rounded to thousands with K suffix)
- Formatting Large Numbers with .NET
- How can I detect the encoding/codepage of a text file
- How to escape braces (curly brackets) in a format string in .NET
- How can I String.Format a TimeSpan object with a custom format in .NET?
- format date in c#
- How to convert string to double with proper cultureinfo
- Custom numeric format string to always display the sign
- Currency format for display
- Format A TimeSpan With Years
- How to split string preserving whole words?
- String format currency
- .NET (3.5) formats times using dots instead of colons as TimeSeparator for it-IT culture?
- Octal equivalent in C#
- Format Strings in Console.WriteLine method
- EPPlus – LoadFromCollection – Text converted to number
- Pass An Instantiated System.Type as a Type Parameter for a Generic Class
- Why should I prefer single ‘await Task.WhenAll’ over multiple awaits?
- Connect to network drive with user name and password
- Passing data to Master Page in ASP.NET MVC
- What’s the difference between IEquatable and just overriding Object.Equals()?
- Determine if current application is activated (has focus)
- Why do members of a static class need to be declared as static? Why isn’t it just implicit?
- Change the value in app.config file dynamically
- Parent Control Mouse Enter/Leave Events With Child Controls
- Why do some C# lambda expressions compile to static methods?
- How do I code a progress bar for Windows 7 to also update itself on the taskbar?
- Why does WPF databinding swallow exceptions?
- C# Socket.BeginReceive/EndReceive
- Why does StandardOutput.Read() block when StartInfo.RedirectStandardInput is set to true?