I have a value (3.35) that I need to truncate to 3.3. This is because I believe it is affecting my average totals. I've attempted int((value *20) div 20, and round(value * 10) dive ten, one rounds down to 3 and the other rounds me up to 3.4
works in CommCare. Is there a reason you are trying
int(X * 20) / 20
? I'm not sure why it wouldn't truncate the same way, but I've also never tried it and am not sure if there are any odd effects to not using a power of 10.
I am really interested in truncating because, I do not need it to round down or up, just take off the additional decimal places that I do not need. i.e. ' 4.06' has been rounding to '4.1' and I need it to round to 4.0
It may be helpful to work backwards and see if manually inputting the same value into your truncation hidden value's input produces the same output you are seeing, to see if the problem is with the associated input