Skip to content

Commit

Permalink
Fix xmlvalue for Decimals in scientific notation
Browse files Browse the repository at this point in the history
  • Loading branch information
KACAH authored and mvantellingen committed Apr 11, 2021
1 parent 82566ec commit 63f6cc3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/zeep/xsd/types/builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ class Decimal(BuiltinType):

@check_no_collection
def xmlvalue(self, value):
if isinstance(value, _Decimal):
return "{:f}".format(value)
return str(value)

@treat_whitespace("collapse")
Expand Down

0 comments on commit 63f6cc3

Please sign in to comment.