Use the P
format string. This will vary by culture:
String.Format("Value: {0:P2}.", 0.8526) // formats as 85.26 % (varies by culture)
More Related Contents:
- Allow only decimal numbers in textbox in C#
- How do I display a decimal value to 2 decimal places?
- How to convert numbers between hexadecimal and decimal
- Remove trailing zeros
- How do you round a number to two decimal places in C#?
- When should I use double instead of decimal?
- String output: format or concat in C#?
- How To Represent 0.1 In Floating Point Arithmetic And Decimal
- decimal vs double! – Which one should I use and when? [duplicate]
- Is a double really unsuitable for money?
- Find number of decimal places in decimal value regardless of culture
- How to convert a Decimal to a Double in C#?
- What does the M stand for in C# Decimal literal notation?
- Best way to display decimal without trailing zeroes
- Problem parsing currency text to decimal type
- Arbitrary-Precision Decimals in C# [duplicate]
- Convert string to decimal, keeping fractions
- use decimal values as attribute params in c#?
- Is String.Format as efficient as StringBuilder
- How to convert Decimal to Double in C#?
- Culture invariant Decimal.TryParse()
- named String.Format, is it possible?
- Why does a C# System.Decimal remember trailing zeros?
- Round a decimal to the nearest quarter in C#
- String.Format exception when format string contains “{“
- How to round decimal value up to nearest 0.05 value?
- How to construct WMI query
- Double vs Decimal Rounding in C#
- Raising a decimal to a power of decimal?
- How do I convert a decimal to an int in C#?