FormatCurrency


Definition: Returns an expression formatted as a currency value using the currency symbol defined in the system Control Panel.

 

To format a Windows PowerShell value as currency you simply use the .NET Framework formatting commands. The following two commands assign the value 1000 to the variable $a, then use the currency formatting string “{0 :C}”to format the value as currency (note that the value to be formatted is included as part of the –fparameter):

 

$a = 1000
$a = "{0 :C}" -f $a

 

When you run this command and then echo back the value of $ a youshould get the following:

 

$1,000.00

 

 

 

 

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.