Format a number with a % symbol.

      FormatPercent(number [,DecimalPlaces [,IncludeLeadingZero
          [,UseParenthesis [, GroupDigits]]]] )

   number              The number to format.
   DecimalPlaces       Number of digits to display after the decimal point.

   IncludeLeadingZero  Include a leading zero for numbers <1 and > -1

   UseParenthesis      Show negative numbers in Parentheis (500) = -500

   GroupDigits         Group large numbers with commas (or the regional delimiter)


Set intDemo = 64.323
WScript.Echo FormatPercent(intDemo,1)

“Sex appeal is fifty percent what you've got and fifty percent what people think you've got” ~ Sophia Loren


FormatCurrency - Format a number with a currency symbol
FormatNumber - Format a number
FormatDateTime - Format a Date/Time value
Equivalent Powershell command: $myvar = "{0:P1}" -f 0.175 Returns 17.5%

© Copyright 1999-2015
Some rights reserved