下面是html中一端代码,怎样格式化结果保留两为小数,谢谢!
<%# float.Parse(DataBinder.Eval(Container.DataItem, "剩余年假", "{0:F2}").ToString()) / 8%>