Solved

Substract values results in string?


Hello,

 

I'm having trouble to substract 2 values. The source attributes (ontwerp & rekenk, yellow) are encoded utf. I convert them to 2 new attributes such as "@real32(@Value(rekenk))". (blue) Then I want to substract those numeric real values in "TEST" but that results in a string? (red)

 

Any ideas?

icon

Best answer by ebygomm 9 April 2020, 15:45

View original

3 replies

Userlevel 1
Badge +21

You need to make sure that you are using the arithmetic editor not the text editor

 

Userlevel 4

You need to make sure that you are using the arithmetic editor not the text editor

 

0684Q00000ArJw4QAF.png

Or simply wrap the whole expression up into a call to @Evaluate():

@Evaluate(@Value(NUM_REKEN)-@Value(NUM_ONTW))

Wow, that looks pretty simple! I'll give it a try. Thnxs.

Reply