LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formula node

Solved!
Go to solution

 

 

Daft question. But how do you input the following into a formula node.

 

In excel i would type “=(2+7)^3” which would give 729

In my formula node I type something similar,  “A=(2+7)^3”; but the answer is 10

All without quotes obviously.

0 Kudos
Message 1 of 4
(2,993 Views)
Solution
Accepted by topic author labnoob

Hi,

 

It should be written like this

A=(2+7)**3;

Message 2 of 4
(2,982 Views)

perfect thanks

0 Kudos
Message 3 of 4
(2,980 Views)

LabVIEW Help -> Fundamentals -> Formulas and Equations -> How-To -> Precedence of Operators in Formula Nodes and Expression Nodes. Also found by searcing "formula node" in the index and then clicking on the "operators" subindex entry.

0 Kudos
Message 4 of 4
(2,963 Views)