Rounding off Curency
|
I am using this:
<%# DataBinder.Eval(Container.DataItem, "Price","{0:c}") %>
to bind an item in a repeater control.
I need to round off the decimal to either .99 or .00 only.
I can't change this through the stored procedure as other items use the 'raw' format.
I have tried converting to double so I can use Math.Round but that rounds off to the nearest dollar with no decimals.
I have researched other numeric formats but none has anything about rounding off the decimals.
Thanks in advance.
Eduardo
|
__________________
Pinoy ako.. ipinagmamalaki ko.
|