当我运行我的SSRS报告时,我得到的是468:30,但根据 我的SP计算应该是2550 * 11/60 = 467.5并且应该更改5 到30秒。
这是我的功能:
Public Function FormatHHMM(ByVal Minutes As Integer) As String
Dim iHH as Integer
Dim iMM as Integer
iHH = Minutes / 60
iMM = Minutes mod 60
Return Format(ihh,"###,##0")+":"+Format(iMM,"00")
End Function
这是该字段中使用的表达式:
=code.FormatHHMM(Fields!Completion_BenchMarkTime.Value)
答案 0 :(得分:1)
使用代码中的FLOOR函数“剪切”其余的计算。
public boolean altaCliente(Clientes c) {
SQLiteDatabase db = getReadableDatabase();
db.execSQL("INSERT INTO Clientes VALUES ('"
+ c.getNumero()
+ "','"
+ c.getNombre() + "','"
+ c.getAlias() + "','"
+ c.getGruPrecioCliente()
+ "','"
+ c.getGruDesCliente()
+ "','"
+ c.getGruRegIvaNeg() + "') ");
return true;
}