Python Script to Remove Decimals?

Posted on
Wed Nov 08, 2023 3:45 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Python Script to Remove Decimals?

The plugin I used to remove the decimal from my thermostat device states no longer works after upgrading to 2022.2.
Maybe there’s a script I could use to turn a variable containing e.g. 60.0 to 60?

Thanks,

Carl

Posted on
Wed Nov 08, 2023 4:53 pm
jay (support) offline
Site Admin
User avatar
Posts: 18224
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Python Script to Remove Decimals?

Code: Select all
int(60.0)

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 10 guests