Skip to content
Snippets Groups Projects
Commit 72f071d6 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: only convert float if int

parent cd1ee89d
No related branches found
No related tags found
2 merge requests!130Release v0.14.0,!127F int dt
Pipeline #47051 passed
...@@ -1504,7 +1504,7 @@ def _parse_value(datatype, value): ...@@ -1504,7 +1504,7 @@ def _parse_value(datatype, value):
if datatype == INTEGER: if datatype == INTEGER:
if isinstance(value, int): if isinstance(value, int):
return value return value
elif isinstance(value, float): elif isinstance(value, float) and value.is_integer():
return int(value) return int(value)
else: else:
return int(str(value)) return int(str(value))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment