Formula with trailing whitespace always returns 0

Your found a bug? Please report it here.
Antworten
no avatar
hampf
Beiträge: 12
Registriert: 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:

Benutzeravatar
gawalione
Administrator
Beiträge: 107
Registriert: 7. Oktober 2017, 00:28

Re: Formula with trailing whitespace always returns 0

11. Juni 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
Beiträge: 1
Registriert: 29. Juni 2019, 14:04

Re: Formula with trailing whitespace always returns 0

29. Juni 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

Antworten