Curious, let's say, evaluation

I try to run: ShowVar(@f, 77.7/259*3-1.5) that should output -0.6 in reality it outputs -1.4. What is wrong here?

Looks like it does: 77.7/259/3 instead of required 77.7/259*3.

However, both 77.7/259/3 and 77.7/259*3 evaluates to same value: 0.1

(77.7/259)*3 evaluates corectly to 0.9
(77.7/259)/3 evaluates corectly to 0.1

Dan

P123’s precedence rules are broken. Please see this conversation.

Best,
Walter

TYVM.

They should still fix it, right? :slight_smile:

I always use parenthesis to avoid errors and also it makes it easier to read.

It will be fun to watch how many simulation results change when a fix is made. :wink:

Walter

I’m so curious too. :slight_smile: