Creates a Format String for formatting numeric values.

Syntax

ISTextUtilities.CreateNumberFormat([includeLeadingZero], [decimalPlaces], [decimalPlacesHash], [groupDigits], [useParenthesesForNegatives], [blankIfZero], [addPercentageSign])

Parameters

NameTypeOptionalByRefDescription
includeLeadingZero Boolean Optional Indicates whether a Leading Zero should be included for numbers with no Integer part. If omitted, a value of True is assumed.
decimalPlaces Integer Optional The number of Decimal Places to display. If omitted, a value of -1 is assumed.
decimalPlacesHash Integer Optional The number of optional Decimal Places to display. This cannot be less than decimalPlaces. If omitted, a value of -1 is assumed.
groupDigits Boolean Optional Indicates whether to Group Digits and display a separator character. If omitted, a value of True is assumed.
useParenthesesForNegatives Boolean Optional Indicates whether Negative numbers should be enclosed in Parentheses. If omitted, a value of True is assumed.
blankIfZero Boolean Optional Indicates whether Zeros should appear as a Blank. If omitted, a value of False is assumed.
addPercentageSign Boolean Optional Indicates whether a Percent sign should be added to the format. If omitted, a value of False is assumed.

Return Value

String

A String value.

Member of:
ISTextUtilities
Namespace:
Intersoft.ISRuntime6
Assembly:
ISRuntime6, Version=6.0.3
Target Framework:
.NET 9.0