Double Precision Numbers and Task Evaluation

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Double Precision Numbers and Task Evaluation

Post by Osler »

Scott:

Can tasks evaluate a double precision number? I have a property value (alphnum) set by a script where the variable in the script is double precision. If I use a task to evaluate if the value is greater than, say 0.250, the task never executes even if the value is above this number. Should I mutliply these numbers by 100 and convert them to integers prior to populating a property in HB? I have to use double precision to arrive at the number because it is calculated from other similarly small values.

Osler
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Re: Double Precision Numbers and Task Evaluation

Post by ScottBot »

Alphanumeric properties are cast to integers when comparing, so you will lose the decimal during the test. If you use a numeric property value, it should work.
Scott
Post Reply