Hi,
I have a "Total" field that is the sum of all "prices" in a sub-form.
I have this working using the formula below.
However, the result is giving me a round number as opposed to a decimal.
So, if my prices are 22.10 and 11.13, I get a result of 33 as opposed to 33.23.
All fields are specified as decimals, so I don't understand why the result is rounding down.
Please help!
Steve
------------------------------------------------------------------------------------
temp_total = 0.0;
for each Title in SubForm_1
{
if (Title.Price != null)
{
temp_total = (temp_total + Title.Price);
}
}
input.Total = temp_total.toLong();