You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ability to create the float/double from its binary representation (e.g. F32.from_le(0x1234) should create the float from its little-endian representation, .from_be(..) from big endian) etc.
Methods to convert to int value and a string binary representation
In [12]: bin(ctypes.c_float(float('NaN')))
---------------------------------------------------------------------------TypeErrorTraceback (mostrecentcalllast)
CellIn[12], line1---->1bin(ctypes.c_float(float('NaN')))
TypeError: 'c_float'objectcannotbeinterpretedasaninteger
Support for special values (NaN, -0, -inf, +inf), it should probably work out of the box:
In [10]: ctypes.c_float(float('NaN'))
Out[10]: c_float(nan)
Support for various math operators, e.g., this should just work:
Even when
cint
stays for integers, it would be cool to add support for float/double types.The text was updated successfully, but these errors were encountered: