LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

negative number in formula node

good day.

I am trying to find information on how to include a negative number in the formula node. 

thank you 

0 Kudos
Message 1 of 8
(716 Views)

Put a negative sign before the number...

wiebeCARYA_0-1708535989855.png

 

0 Kudos
Message 2 of 8
(693 Views)

@n3ow wrote:

I am trying to find information on how to include a negative number in the formula node. 


Click on the border of the formula node, then click the key on the keyboard just above the arrow keys that says "Delete".  Problem solved.  😂

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
Message 3 of 8
(686 Views)

thank you I see in the example you provided that I was missing a space between the function and the minus sign.

Have a goo day

 

Message 4 of 8
(672 Views)

@n3ow wrote:

thank you I see in the example you provided that I was missing a space between the function and the minus sign.

Have a goo day

 


I generally don't like goo days (too messy).

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 5 of 8
(666 Views)

A space is not required.

aputman_0-1708538520828.png

 

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 6 of 8
(660 Views)

As some have already hinted, maybe the real solution is not to use a formula node at all. There is really never a compelling reason for them.

 

Can you take a step back and explain what you are trying to do?

0 Kudos
Message 7 of 8
(611 Views)

@altenbach wrote:

As some have already hinted, maybe the real solution is not to use a formula node at all. There is really never a compelling reason for them.

 

Can you take a step back and explain what you are trying to do?


There are compelling reasons NOT to use them , though, like:

  • They are orders of magnitude slower than if you created the same code using native functions.
  • You have to worry about syntax (exactly like what the OP is having trouble with).

Of course, this post isn't aimed at educating you, Altenbach.  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 8
(591 Views)