www.homeseer.com

Go Back   HomeSeer Message Board > Developer Support > Scripts & Plug-Ins:Development and Libraries > Script & Plug-In Development

Script & Plug-In Development Discuss scripting for HomeSeer and general VBScript assistance. Use this forum to post incomplete scripts, script snippets or code samples.

Reply
 
Thread Tools Display Modes
  #1  
Old October 27th, 2009, 09:13 PM
simonmason simonmason is offline
Seer Deluxe
 
Join Date: Nov 2001
Location: Chatham, NJ, USA
Posts: 338
Default Do device values support decimal numbers?

I have a script that is writing a decimal value to a devicevalue. When I retrieve the value it is always rounded up to a single integer. I have tried running Cint and Ccur on it but the decimal places seem to be lost. Is there a way to store a decimal in devicevalue? Thanks.
Reply With Quote
  #2  
Old October 27th, 2009, 09:22 PM
stevea's Avatar
stevea stevea is offline
Super Seer
 
Join Date: Jan 2001
Location: Centennial, Colorado, USA
Posts: 1,953
Default

Unfortunately, no. Best you can do is multiply it by 10 when you store it, and divide it by 10 when you read it back.

Steve
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 09:25 PM.


Copyright 1998-2008 HomeSeer Technologies, LLC