bmwcarit / python-dlt

python-dlt is a thin Python ctypes wrapper around libdlt functions
Mozilla Public License 2.0
34 stars 29 forks source link

Fix: pass dlt time with double to solve floating-point precision problem #33

Closed yen3 closed 3 years ago

yen3 commented 3 years ago

The float type in python is the double type in C. The previous implementation has the precision problem. Change it to ctypes.c_dobule to fix it