Last post Sep 01, 2010 03:31 PM by Je_fait_le_logiciel
Sep 01, 2010 09:33 AM|Je_fait_le_logiciel|LINK
When I enter 3.5 for hours it saves the duration as 4.
I have changed the database field to a precision of 2
and commented out this section in App_Code/BLL/TimeEntry.cs
//if (duration <= DefaultValues.GetDurationMinValue())
// throw (new ArgumentOutOfRangeException("duration"));
I'm not sure where the rounding is occuring. Does anyone know how to stop this?
Sep 01, 2010 02:10 PM|ignatandrei|LINK
do you have some code ?
Sep 01, 2010 03:31 PM|Je_fait_le_logiciel|LINK
I found the problem. I needed to change the precision of the stored procedures from decimal(18,0) to decimal (18,2)