4 byte floating point two values comparison - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: 4 byte floating point two values comparison (/showthread.php?tid=5487) |
4 byte floating point two values comparison - AlexLV - 26.06.2024 Hi, how to make comparison of 2 values 14 type 4 byte floating point? Simple comparison not working for me. currentprice and price are 4 byte floating point values. If currentprice > price then grp.write ('35/5/20', 1) else grp.write ('35/5/20', 0) end BR, Alex RE: 4 byte floating point two values comparison - admin - 26.06.2024 Post your whole script. RE: 4 byte floating point two values comparison - AlexLV - 26.06.2024 value = event.getvalue() if value then currentprice = grp.getvalue('35/5/17') price = grp.getvalue('35/5/18') If currentprice > price then grp.write('35/5/20', 1) else grp.write('35/5/20', 0) end end RE: 4 byte floating point two values comparison - admin - 26.06.2024 if should be lowercase RE: 4 byte floating point two values comparison - AlexLV - 27.06.2024 Thank you, I did very serious mistake Alex |