diff --git a/tableschema/types/number.py b/tableschema/types/number.py index 5558daf..264fd0c 100644 --- a/tableschema/types/number.py +++ b/tableschema/types/number.py @@ -26,6 +26,8 @@ def cast_number(format, value, **options): elif not isinstance(value, six.integer_types + (float,)): return ERROR try: + if isinstance(value, float): + value = str(value) value = Decimal(value) except Exception: return ERROR