Hi All,
This is prob an easy one for everyone even a slight bit more intelligent than me!
I have a calc element with the calculation
return (int)'{table___weight}'-'{table___weight_nok}';
table___weight & table___weight_nok are set as decimal fields.
how do I stop the calculation rounding up? & show accurate number?
ie it gives 22.5 - 3.2 = 18.8? (should be 19.3)
on another calc element i have
return (int)('{table___weight}'-'{table___weight_nok}')*0.60;
which would give (22.5 - 3.2) x 0.6 = 11.4 (should be 11.58 )
Thanks in advance.
This is prob an easy one for everyone even a slight bit more intelligent than me!
I have a calc element with the calculation
return (int)'{table___weight}'-'{table___weight_nok}';
table___weight & table___weight_nok are set as decimal fields.
how do I stop the calculation rounding up? & show accurate number?
ie it gives 22.5 - 3.2 = 18.8? (should be 19.3)
on another calc element i have
return (int)('{table___weight}'-'{table___weight_nok}')*0.60;
which would give (22.5 - 3.2) x 0.6 = 11.4 (should be 11.58 )
Thanks in advance.