Format a Percentage value, always including a % sign at the end.

Syntax

ISSupport.FormatPercentage(value, [maximumDecimalPlaces], [blankIfZero], [useParenthesesForNegatives], [minimumDecimalPlaces])

Parameters

NameTypeOptionalByRefDescription
value Double The value to format.
maximumDecimalPlaces Integer Optional The maximum number of decimal places to include. If less than minimumDecimalPlaces will use minimumDecimalPlaces. If omitted, a value of 2 is assumed.
blankIfZero Boolean Optional Indicates whether to return a blank String if value is zero. If omitted, a value of False is assumed.
useParenthesesForNegatives Boolean Optional Indicates whether Negative percentages should be enclosed in Parentheses. If omitted, a value of False is assumed.
minimumDecimalPlaces Integer Optional The minimum number of decimal places to include. If omitted, a value of 0 is assumed.

Return Value

String

A String value.

Member of:
ISSupport
Namespace:
Intersoft.ISSupport6
Assembly:
ISSupport6, Version=6.0.3
Target Framework:
.NET 9.0