Click here to Skip to main content
14,830,018 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I debug the following code :
C#
double dbActualProductionNormalHourMonthly = diffActualProductionNormalHourDaily + Convert.ToDouble(DTLOCALNRows.Rows[r]["ActualProductionNormalHourMonthly"].ToString());
double dbActualProductionExtraHourMonthly = diffActualProductionExtraHourDaily + Convert.ToDouble(DTLOCALNRows.Rows[r]["ActualProductionExtraHourMonthly"].ToString());
double dbActualProductionTotalHourMonthly = diffActualProductionTotalHourDaily + Convert.ToDouble(DTLOCALNRows.Rows[r]["ActualProductionTotalHourMonthly"].ToString());

But the problem is that when the value of diffActualProductionNormalHourDaily is 40 and
Convert.ToDouble(DTLOCALNRows.Rows[r]["ActualProductionNormalHourMonthly"].ToString())=4100 then
double dbActualProductionNormalHourMonthly shows 4100. The other two line is ok. What is the problem please help me. How can I get rid of the problem!!!!
Posted
Updated 29-Sep-13 19:58pm
v2
Comments
[no name] 30-Sep-13 3:00am
   
debug and check what's going into those variables...use quick watch in vs
Sumon562 30-Sep-13 3:03am
   
I checked and use quick watch. It's ok but the result is wrong

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900