#How to do arithmetic encoding in zig?

1 messages · Page 1 of 1 (latest)

upper cedar
#

I'm having a problem with big float numbers

#

is this possible in zig
0.1285987231730127039209... to what ever length

static knot
#

Zig does not have built-in arbitrary precision numeric support. People are writing libraries for that.

#

Is Zig's f128 type not big enough for you?

raw ridge
#

arithmetic coding gets arbitrarily precise for each symbol. Would recommend checking out Asymmetric Numeral Coding (based on AC) if u can