Skip to content

Commit 81ee9d4

Browse files
authored
Merge pull request #23 from rikkuness/decimal-datatypes
Allow numerics to be decimals fixes #22
2 parents f1efc96 + c56ff4a commit 81ee9d4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

iamspy/datatypes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ def _date(data):
8989

9090

9191
def _numeric(data):
92-
return z3.IntVal(data)
92+
if "." in str(data):
93+
return z3.RealVal(data)
94+
else:
95+
return z3.IntVal(data)
9396

9497

9598
def _string(data):

0 commit comments

Comments
 (0)