在以下方法或属性之间的调用不明确:“System.Math.Floor(decimal)”和“System.Math.Floor(double)
这个是我正在调试的程序中的一段,现在出现问题了:
//时间转化 Int64 timeInMillis=Convert.ToInt64(e.Item.Cells[2].Text.Trim()); int hours = (int)Math.Floor(timeInMillis/(60*60)); int minutes = (int)Math.Floor((timeInMillis %(60*60))/60); int seconds = (int)(timeInMillis %(60*60))%60; e.Item.Cells[2].Text=hours.ToString()+"H"+minutes.ToString()+"M"+seconds.ToString()+"S";