Forum Discussion
JosephReynolds
5 days agoQuickbase Staff
I set up a formula to force rounding without using the "Round" function. If you're running into this issue, this formula might help:
var Number input = [Field to Round];
var Number absInput = Abs($input);
var Number thousandths = Mod(Int(($absInput + 0.00001) * 1000), 10);
var Number adjusted = If($thousandths >= 5, $absInput + 0.01, $absInput + 0.00001);
var Number truncated = Int($adjusted) + Int(Frac($adjusted) * 100) / 100.0;
If($input < 0, -1 * $truncated, $truncated)