I’m struggling with this invoices I have were they have been rounding to nearest integer, but in the case of ties it rounds down. So for “reasons” I need a function f such that
f(0.6) = 1
f(0.4) = 0
f(0.5) = 0
Seems neither ROUNDDOWN (truncate) nor ROUND (rounding according to normal rules of rounding a tie upwards) is doing it for me.