jedimt / hcicollector

12 stars 7 forks source link

All floating point values for sfcollector are truncated to integers #19

Closed Snickher closed 5 years ago

Snickher commented 5 years ago

It looks like the to_num() method is calling int() first on all numbers passed to it, which will truncate floats without errors to 0.

From https://docs.python.org/2/library/functions.html#int If x is floating point, the conversion truncates towards zero.

Need to find another way to collect number values from SF arrays so that they aren't getting truncated into integers.

jedimt commented 5 years ago

I have made the requested change to the collector (per your email).