Logic Machine Forum
W to kw formel - 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: W to kw formel (/showthread.php?tid=3199)



W to kw formel - P3774n - 28.02.2021

Hi

I made a simple math scritp, it worked fine.
But when i have negativ -W = when i produced sunpower the -w turns in to positiv in my kw formel. Why?

So
-30+-30+-30=-90w -90w/1000 should be =-0,090kw but the results is 0,090kw

Thanks[Image: fe746642b074a360b70ba5d837093ba5.jpg]

Skickat från min SM-G981B via Tapatalk


RE: W to kw formel - CristianAgata - 28.02.2021

(28.02.2021, 09:14)P3774n Wrote: Hi

I made a simple math scritp, it worked fine.
But when i have negativ -W = when i produced sunpower the -w turns in to positiv in my kw formel. Why?

So
-30+-30+-30=-90w -90w/1000 should be =-0,090kw but the results is 0,090kw

Thanks[Image: fe746642b074a360b70ba5d837093ba5.jpg]

Skickat från min SM-G981B via Tapatalk
I think because you are use abs.math function


W to kw formel - P3774n - 28.02.2021

Ok, with formel it best suteed here?
Math.floor its not the answare.

Update math.floor is working. But it rounds up

Skickat från min SM-G981B via Tapatalk


RE: W to kw formel - CristianAgata - 28.02.2021

If you use value = value4 / 1000
doesn't it work?


W to kw formel - P3774n - 02.03.2021

Problem solved, a little embarresing. Just add - and not run a math function....



Skickat från min SM-G981B via Tapatalk