opendp 0.14.2-dev.20260401.2

A library of differential privacy algorithms for the statistical analysis of sensitive private data.
1
2
3
4
5
6
# type: ignore
def floor_div(a: IBig, b: UBig) -> IBig:
    if Sign.Positive == a.sign():
        return a / b
    else:
        return (a - b + 1) / b