Seite 1 von 1

Formula with trailing whitespace always returns 0

Verfasst: 20. April 2018, 14:52
von hampf
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:

Re: Formula with trailing whitespace always returns 0

Verfasst: 11. Juni 2019, 18:55
von gawalione
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?

Re: Formula with trailing whitespace always returns 0

Verfasst: 29. Juni 2019, 14:21
von jenda42
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