NumberFormatInfo: PercentDecimalDigits (get)

PercentDecimalDigits

Returns the number of digits to be displayed after the decimal point for percent formatted numbers.



 Public Property Get PercentDecimalDigits ( ) As Long

Return Values

Long -  The number of digits to display after the decimal point.

Remarks

This is used when a specifier of "p" is used with no associated digits (ie "p5").

If the number is less than the precision of the value, then the value is rounded to fit within the number of digits specified. If omitted the value is rounded to the number of digits returned by this property.

If the specified number of digits is larger than the precision of value, then the formatted value will be padded with zeros.

The default number of digits is 2.

Read/Write.

See Also

Project CorLib Overview

Class NumberFormatInfo Overview