C
Colin Basterfield
Hi there,
I have come back to C# from a Delphi project and got myself stuck with a
simple division.
I have the following expression
perDayCount = (_daysInMonth / budgetTotal.BudgetCount);
where
perDayCount is float
_daysInMonth is int
budgetTotal.BudgetCount is short
now the values for one of the rows in my set are
_daysInMonth = 30
budgetTotal.BudgetCount = 300
Now I want 0.1 out which is the answer of course but perDayCount comes out
at 0.0 each time, which causes my next calc to fail.
Can anyone put me out of my misery please?
Many thanks in advance
Colin
I have come back to C# from a Delphi project and got myself stuck with a
simple division.
I have the following expression
perDayCount = (_daysInMonth / budgetTotal.BudgetCount);
where
perDayCount is float
_daysInMonth is int
budgetTotal.BudgetCount is short
now the values for one of the rows in my set are
_daysInMonth = 30
budgetTotal.BudgetCount = 300
Now I want 0.1 out which is the answer of course but perDayCount comes out
at 0.0 each time, which causes my next calc to fail.
Can anyone put me out of my misery please?
Many thanks in advance
Colin