Skip to content

Please consider makeing posits proper numeric type

To use in real python programs, posits should be numeric. Below example

import numpy as np
import softposit as sp
import numbers

for t in [np.float32, sp.posit32]:
    print(t, issubclass(t, numbers.Real))

prints

<class 'numpy.float32'> True
<class 'softposit.posit32'> False

Thus one can't make sure they can use softposit just as usual numbers in their code.

Actually looks as an issue for at least middle version update =)