If you want that with a standard format specifier you have to use a trick. Use the percent-format-specifier “P” after you removed the percent-symbol from the NumberFormatInfo
:
Dim percentWithoutSign = CType(NumberFormatInfo.CurrentInfo.Clone, Numberformatinfo)
percentWithoutSign.PercentSymbol = ""
Now you can use this Numberformatinfo
wherever you want to display a value as percentage but without the percent-symbol (P0
means no decimal places but orginial value * 100):
Dim amount as Decimal = 5
Dim result = amount.ToString("P0", percentWithoutSign)
1
solved How can I print 5 to 2 decimal place implied?