Showing posts with label Currency. Show all posts
Showing posts with label Currency. Show all posts

Tuesday, April 26, 2011

FormatCurrency Function

To format a decimal value as currency for output:

lblLabel.Text = FormatCurrency(decPrice)

Also see: Format currency in GridView

Monday, March 14, 2011

Format currency in GridView

Set the DataFormatString property of the Gridview field to:

{0:C}

This will format the DataField at position 0 (in the array) to a currency value.

A decimal value of 99.0000 will be formatted to $99.00





Also see: FormatCurrency Function

Wednesday, October 27, 2010

What is Decimal?

The Decimal data type is used to store currency and other decimal values as it supports up to 28 digits to the right of the decimal point.