This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

W to kw formel
#1
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
Reply
#2
(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
Reply
#3
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
Reply
#4
If you use value = value4 / 1000
doesn't it work?
Reply
#5
Problem solved, a little embarresing. Just add - and not run a math function....



Skickat från min SM-G981B via Tapatalk
Reply


Forum Jump: