Python Conversion From C_double To Float
I am new to Python. I would like to know what would be the best way to convert a c_double (from ctypes) to a float. My code is working, but I would like to know if there is a pytho
Solution 1:
Use the value
property on a c_double
.
>>> ctypes.c_double(-10.0).value
-10.0
Post a Comment for "Python Conversion From C_double To Float"