worldbank/iefieldkit

iecorrect: fix issue with precision

Closed this issue · 1 comments

The solution for #187 in #203 isn't quite right -- it needs to check the underlying data type of numeric variables and act appropriately, using the float() function for floats and using the double() function for doubles I believe. I'm not sure what to do in all other cases -- but we certainly would not want to check/pass a float() value against/into an int variable as this might do! We may however want to return an error if a non-integer value is attempted to be used with an integer variable.

This only adds the functions to the if statement. Add if to the actual replacement as well