Skip to main content
Solved

Substract values results in string?

  • April 9, 2020
  • 3 replies
  • 7 views

smartman63
Contributor
Forum|alt.badge.img+1

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?

Best answer by ebygomm

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

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • Best Answer
  • April 9, 2020

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

 


david_r
Celebrity
  • 8392 replies
  • April 9, 2020

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))

smartman63
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 8 replies
  • April 9, 2020

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