Link to home
Start Free TrialLog in
Avatar of rito1
rito1

asked on

How to convert Eval("Price") to 2 decimal places

Hi All,

I am using C# and have the following within a repeater control:

<%# Eval("Price") %>

The underlying data type is MONEY and the value is currently returning 10.0000. How can I format this like 10.00?

Many thanks,

Rit
ASKER CERTIFIED SOLUTION
Avatar of ViceroyFizzlebottom
ViceroyFizzlebottom
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rito1
rito1

ASKER

Excellent, thanks both.

Rit
For more information on Formatting Types especially the numeric ones see this link and browse for Standard or Cutsom formats.