Skip to content

Commit

Permalink
Round floats from controller to 2 digits
Browse files Browse the repository at this point in the history
  • Loading branch information
dingusdk committed Mar 23, 2023
1 parent 13a7352 commit 38f75fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ihcsdk/ihcclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ def __get_value(resource_value):
"WSIntegerValue": lambda v: int(
v.find("./ns2:integer", IHCSoapClient.ihcns).text
),
"WSFloatingPointValue": lambda v: float(
v.find("./ns2:floatingPointValue", IHCSoapClient.ihcns).text
"WSFloatingPointValue": lambda v: round(
float( v.find("./ns2:floatingPointValue", IHCSoapClient.ihcns).text),2
),
"WSEnumValue": lambda v: v.find("./ns2:enumName", IHCSoapClient.ihcns).text,
"WSTimerValue": lambda v: int(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="ihcsdk",
version="2.8.4",
version="2.8.5",
description="IHC Python SDK",
long_description=(
"SDK for connection to the LK IHC Controller. "
Expand Down

0 comments on commit 38f75fb

Please sign in to comment.