NumberFormatInfo: PercentDecimalDigits (let)

PercentDecimalDigits

Sets the number of digits after the decimal point for percent formatted numbers.



 Public Property Let PercentDecimalDigits(
	  ByVal Value As Long )

Parameters

Value
[ByVal] 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