Formula with trailing whitespace always returns 0

Your found a bug? Please report it here.
no avatar
hampf
Posts: 10
Joined: 20. April 2018, 14:47

Formula with trailing whitespace always returns 0

20. April 2018, 14:52

When entering a formula with trailing whitespaces the result is 0 (zero), e. g.

A=5
B=6
C=2*A+B+1 <--- whitespaces
0=f(2*A+B+1)

returns C=0 instead of C=17 :shock:

User avatar
gawalione
Administrator
Posts: 82
Joined: 7. October 2017, 00:28

Re: Formula with trailing whitespace always returns 0

11. June 2019, 18:55

I tried this in 0.73-dev1 and the problem does not occur.
Are you sure, you have a normal whitespace there (Code 0x20) and not something different?

no avatar
jenda42
Posts: 1
Joined: 29. June 2019, 14:04

Re: Formula with trailing whitespace always returns 0

29. June 2019, 14:21

Hi,

problem is in copy/paste with trailing whitespace.
Tested on GC849M8 with formula
E14° (D*C+5*B-A*5-E*3*C+2*C-4+F*A)/1000

Yoy can try this:
add white space at end and nothing to see
add second whitespace at end and foormula changes to
E14° (D*C+5*B-A*5-E*3*C+2*C-4+F*A)/1000.
(decimal dot at end) and you see error, and lose variables...

Jenda

Post Reply